Terminating a authenticated user

  • Thread starter Kristofer Liljeblad
  • 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
 
J

James J. Foster

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

System.Web.Security.FormsAuthentication.SignOut();
 
K

Kristofer Liljeblad

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
 

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

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top