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
You can check your connection timeout in these 2 areas.
OR
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With