ASP.Net Session expiry

Last post 10-23-2007 8:37 PM by chkasarma. 4 replies.

Sort Posts:

  • ASP.Net Session expiry

    10-22-2007, 8:26 PM
    • Member
      point Member
    • chkasarma
    • Member since 10-22-2007, 8:15 PM
    • Posts 5

    Hi guys,

    We are developping an aplication on ASP.Net platform by using C#. In recent development process we have placed a binary exe in  Bin forlder.Since from then we have been experiencing session expiry problem by returning the session to log in page.Inorder to resolve this issue,  we have removed that binary exe from the Bin, but still we are facing the same problem

    we are using Mode = Inproc

    Can anyone please helpme out

     

    Thanks

  • Re: ASP.Net Session expiry

    10-22-2007, 8:39 PM
    • Member
      34 point Member
    • RachitP
    • Member since 09-20-2007, 2:17 AM
    • NJ, USA
    • Posts 7

    chkasarma,

    Can you eloborate little bit more what your ASP.Net directory structure and about project? I still don't understand why you would have .exe in your bin folder of the "Web Application". Why would you need to have that? Please check your code or IIS settings for the Session Expiration. Default is 20 min if you don't change anything. You could either make a change in web.config or IIS virtual directory level.

    Rachit
     

  • Re: ASP.Net Session expiry

    10-22-2007, 10:19 PM
    • Member
      point Member
    • chkasarma
    • Member since 10-22-2007, 8:15 PM
    • Posts 5

    Hi Rachit,

    Your responce is greately appreciated

    Our porject is a Contract Management aplication,  developping on  ASP.net platform in Visual Studio 2005 environment. Since we have to share some of DLL s with other part of application, we placed related exe in the Bin folder. We have set time out for 240 minutes in webconfig.Placing the new exe  in the  Bin Folder caused unexpected session expiry  while navigating the application as well as independent time out of pre set time out value.then we have created a seperate folder for that new application and copied  and pasted the relevent DLL from Bin folder to newly created folder .It solved the problems of running the new appplication along with other applications and also solved the time out issues . But we are still experiencing unexpected session expiry while navigating, though it is not as frequent as before.

    Directory structure

    Root

      + Bin

     + Website

     - Web config files

     + Newly created exe folder

       -Exe file

     

    I reckon i have answered your question.

     

    Thanks

     

  • Re: ASP.Net Session expiry

    10-23-2007, 6:02 AM
    Answer
    • All-Star
      58,114 point All-Star
    • anas
    • Member since 09-21-2006, 4:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,655
    • Moderator

    hi

    i think the session lost here because of aspnet application restart ,

    this happened for many reasons :

    • A modification to web.config file or to Bin directory
    • application recylce.

    and i think your .exe application causes a modification to bin directory , which is also a reason for application restarts.

    resources :

     

    Regards,

    Anas Ghanem | Blog

  • Re: ASP.Net Session expiry

    10-23-2007, 8:37 PM
    • Member
      point Member
    • chkasarma
    • Member since 10-22-2007, 8:15 PM
    • Posts 5

    Hi Ghanem !

    Thanks for your reply and those links.We have resolved that problem. Yeah! you are right its all because of modification of bin folder. We have rectified by createing another folder for exe ,  still we were experiencing the same issue but only at particular part of the application. Finally we have found that its because of some bug and finally we have corrected

    Thanks for you all

     

Page 1 of 1 (5 items)