views:

487

answers:

3

How exactly can one implement a Log off function when using ASP.NET Forms Authentication on an intranet application?

How will this work if I am an administrator and want to log in "as someone else" into the application?

Please share your ideas

+6  A: 

FormsAuthentication.SignOut(); ;)

Ben Scheirman
A: 

The preferred authentication for an intranet application is to use windows authentication instead of forms authentication.

In which case you can just log off of windows and login as "someone" else.

JarrettV
A: 

Don't forget to also add Session.Abandon() to ensure session data is purged as well

Dillie-O