jimseiwert
asked on
ASP.Net End Session
How can i end the user session when the browser closes. I have noticed sometimes when i close the browser and reopen it still shows me as logged in but all my session variables are gone. How can i do one of the following
Keep the seession objects or log the user out so they have to log back in.
Thanks
Keep the seession objects or log the user out so they have to log back in.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That was it, thank you
You can set both Session and Authentication time outs to the same value, like the following:
In web.config:
<sessionState mode="YourValue" timeout="30" />
<authentication mode="Forms">
<forms timeout="30" moreValues="","","" />
</authentication>