Sign in to follow this  
orbano

[.net] ASP.NET Session Timeout

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this