Terminating a authenticated user

  • Thread starter Thread starter Kristofer Liljeblad
  • Start date Start date
K

Kristofer Liljeblad

Hi,

1. How can I "terminate" an authenticated user? (I would like the server to
redirect the user to the login page again. I'm using "forms
authentication".)

2. Is it possible to enumerate all sessions on a IIS? Is it possible to
enumerate all authenticated users on a IIS (without the use of global.asax
and session_start and session_end)?

/Kristofer
 
As for terminating an authenticated user, or "logging out", look at:

System.Web.Security.FormsAuthentication.SignOut();
 
Guess I wasn't as clear as I thought ;-) Thanks for the quick reply anyway.

I knew about the SignOut method, but how do I sign out another user. I have
this administrative tool that I've coded. I would like to sign out all or
some members at some times.

So I guess I can not remove the authentication ticket (cause I don't have
access to it). I have to do it on the server side, but how?

/Kristofer
 
Back
Top