asp.net 2.0 session timeout

Posted by d3020 on Stack Overflow See other posts from Stack Overflow or by d3020
Published on 2010-03-31T23:26:41Z Indexed on 2010/03/31 23:33 UTC
Read the original article Hit count: 514

Filed under:
|
|
|

I apologize in advance for this likely being asked before. I have an asp.net 2.0 web application and am trying to set the session timeout.

My first attempt was to add this to the web.config. < sessionState mode="InProc" timeout="300" >

Users would tell me though that after about 20 minutes of being idle and then trying to do something again on the site they'd be redirected back to the login page.

So now I'm trying timeout="60" in my < forms tag in the web.config.

I also tried Session.Timeout=60 in my global.asax.

Should these work? Do I need something else? Thank you for your time and help.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about 2.0