NEWBIE QUESTION ABOUT LOGOUT

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.
 
G

Guest

If you are using Forms authentication, the logout button should call

Session.Abandon

That clears the existing session including the authentication.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top