Best way to implement the Logout ?

  • Thread starter Thread starter Polaris
  • Start date Start date
P

Polaris

Hi:

What is the best way to implement the logout event? Put a "Logout" button on
each page and then process the logout event? Is there a better way?

And, is there an ASP.NET API for ending a session so that the Session_End()
in the Global.aspx is invoked?

Thanks In Advance for your input.

Polaris
 
You could encapsulate this logic into a web control and then plop it into
all the pages to unauthenticate the user.

The Abandon method of the session object should fire a session_onend event.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Back
Top