Click here to Skip to main content
14,733,866 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing a problem with session expire with in 5 min.
actually in web.config file the session time out is set to 540min, even it is expiring with in 5 min. it is killing me, i am not getting wat is the problm, i tried working in different ways but problem is not solved.


this is the setting in web.config


<sessionState timeout="540" mode="InProc" compressionEnabled="true" cookieless="UseCookies">
    </sessionState>
Posted

Well if your application pool is being destroyed after 5 minutes then that would be a problem considering your session is inproc. Increase the timeout of the application pool to be 540 minutes.


--Amit
   
Comments
__TR__ 27-Aug-12 4:35am
   
My 5!
_Amy 27-Aug-12 4:35am
   
Thanks. :)
NaveenWin 27-Aug-12 5:09am
   
Thanks amit
_Amy 27-Aug-12 5:25am
   
Welcome. If it is working for you then mark it as a solution so that others can get the help by reading this question. :)
Go to IIS and set Session timeout there as well
   

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