How to manually force a logout using asp.net 2.0

A

AAOMTim

I am using forms authentication and the asp.net 2.0 login controls along with
the asp.net membership provider. I would like to manually log the user off
from within the application. I tried using session.abandon, but that merely
ends the sessionbut still does not log the user off. What do I need to do to
log them off?
 
S

shaharh

AAOMTim said:
I am using forms authentication and the asp.net 2.0 login controls along with
the asp.net membership provider. I would like to manually log the user off
from within the application. I tried using session.abandon, but that merely
ends the sessionbut still does not log the user off. What do I need to do to
log them off?

Use: FormsAuthentication.SignOut();
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top