Click here to Skip to main content
15,748,748 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
Mehdi Gholam 16-Nov-11 6:26am    
1440 sec = 24 minutes

If you are using 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).
Share this answer
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:[^]. For more pages just google "application pool recycling".


Share this answer

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

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