NEWBIE QUESTION ABOUT LOGOUT

  • Thread starter Thread starter J
  • Start date Start date
J

J

Hi,
I am using sessions to store user's login and other information on my asp.net
pages, also I have a logout button on every page which will redirect user to
log-in page. So what kind tasks I need to perform when user click 'logout'
button?

Thanks in advance.
 
If you are using Forms authentication, the logout button should call

Session.Abandon

That clears the existing session including the authentication.

Ken
 
Back
Top