IIS7 ASP.NET Session drops in seconds

Posted by shxo on Stack Overflow See other posts from Stack Overflow or by shxo
Published on 2010-03-18T22:40:49Z Indexed on 2010/03/18 22:41 UTC
Read the original article Hit count: 501

Filed under:
|
|
|

For testing I have 1 isolated page - no masters, controls, …. My sessions are lost after about 30 seconds. I’ve tried setting timeout on the page itself, in web.config, both, and neither. Tried forms authentication with timeout and windows authentication. Recycle the AppPool after changes.

I can response.write from the Session_Start , but I never get any response.writes from the Session_End.

Some things I’ve tried:

<sessionState mode="InProc"
  stateConnectionString="tcpip=127.0.0.1:42424"
  sqlConnectionString="data source=127.0.0.1;"
   cookieless="false"
   timeout="20" />

<sessionState mode="InProc" cookieless="false" timeout="20"/>

<sessionState mode="InProc" timeout="20"/>

<sessionState timeout="20"/>

No luck.

My runtime is set to:

<httpRuntime useFullyQualifiedRedirectUrl="true" 
maxRequestLength="204800" 
requestLengthDiskThreshold="204800" 
executionTimeout="600" />

I don’t know what this would be relevant, but I can’t think of anything else to post!

Thanks!

© Stack Overflow or respective owner

Related posts about iis7

Related posts about ASP.NET