• Advertisement
Sign in to follow this  

[.net] ASP.NET Session Timeout

This topic is 4153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! Could someone tell me how to set the session timeout interval? I guess it must be set int the web.config, but have no clue, how to do that... thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
There is an entry in web.config called <sessionState.../> which takes an attribute timeout="20". It is a child of the <system.web> node. I guess that's what you're looking for.

Share this post


Link to post
Share on other sites
Quote:
Original post by RizMan
There is an entry in web.config called <sessionState.../> which takes an attribute timeout="20". It is a child of the <system.web> node. I guess that's what you're looking for.


thanks!!!

Share this post


Link to post
Share on other sites
Quote:
Original post by paulecoyote
Oh, be aware that session time out and your authentication timeout might well be different.


what do you mean? i don't get it :)

/im using the .net login control with custom authentication via a mysql database/

Share this post


Link to post
Share on other sites
Well consider that the forms authentication may keep a cookie or something that despite the session finishing, keeps them logged on.

So for forms auth at the end of the session you have to sign out...
FormsAuthentication.SignOut();

... and abandon a session....
Session.Abandon();

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement