Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session Time out in IIS 7

I like to host asp.net web application in IIS 7.0 (windows server 2008).

I configured session state as sessionstate mode="inproc" timeout = 120. Even the session expires within 15 seconds. What could be the problem?.

Thanks

like image 232
gopal Avatar asked Jun 04 '09 09:06

gopal


3 Answers

You can check your connection timeout in these 2 areas. enter image description here

enter image description here

OR

Advanced settings

like image 113
Musikero31 Avatar answered Oct 05 '22 06:10

Musikero31


Check the Windows Event Log to ensure that the Worker Process is not being forced to recyle.

There may be something in your code that causes the Worker Process to force itself to recyle in which case when the session is stored inProc it will loose all session values it's holding.

like image 44
Michael Merrell Avatar answered Oct 05 '22 06:10

Michael Merrell


sounds like the session timeout is set incorrectly in the web.config you could try something like:

<system.web>
    <sessionState timeout="2" />

to set the timeout to 2 minutes

http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.71).aspx

like image 22
Stephen Binns Avatar answered Oct 05 '22 07:10

Stephen Binns