Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication does not log me out.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I have set the Timeout in my Web.config, but after that amount of time I am still logged in. What else do I need to know about logging out after a certain time period?
 
In your global asax file, there is a sub called
Session_OnEnd

This fires when your session actually gets the axe. Try putting in code that will delete the record of the user being logged in (whatever your security scheme might be)

if you're using cookies, obviously the client browser may be closed long before the session dies. In this case, you may need to set some of the cookies properties (like lifetime, etc.) to help accomplish your goals.

hth

D
 
Well... I can try that... Also, I'm using Forms Authentication.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top