Session lost in few seconds randomly

233 views Asked by At

My web application is developed using Dot Net 4.0 C# and MS SQL 2008 R2. Application and Database are deployed on separate servers.

I have used form authentication on my application and user session is maintained in Session object. Recently the session object on my application was getting lost frequently because of no reason.

I've tried below stuffs to fix this, but nothing worked.

  1. Increase the session timeout from web.config
  2. Increase the IDLE Timeout of Application Pool from IIS
  3. Set the number of Worker Process to 1
  4. Proper exception handling for required method and global exception handling
  5. Fixed all exceptions and memory leakage.

Because of some other reason we've restarted our SQL Server Machine today and everything started working perfect now.

I'm confused now on how can a InProc session issue be solved by restarting SQL Server machine.

0

There are 0 answers