Click here to Skip to main content
14,697,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The session is being timed out within 20 min even the timeout value in web.config file is given as 1440 minutes in .net 4.0
Posted
Comments
Mehdi Gholam 16-Nov-11 6:26am
   
1440 sec = 24 minutes

If you are using ASP.net In-proc session, this is always possible that the session timeout value you set will not behave as expected.
To solve this either user out-proc session (using State server/SQL server).
   
Another thing you should keep in mind is that the configuration can force the application pool to be recycled. If you have In-Proc sessions they will be ended when the corresponding application pool associated with the application is recycled. Here is some info about that: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1eee28e2-b319-4b4e-8267-a8c0aa0dcf36.mspx?mfr=true[^]. For more pages just google "application pool recycling".

Cheers!

—MRB
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900