Ask a Question related to ASP.NET General, Design and Development.
-
Kristofer Liljeblad #1
Terminating a authenticated user
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
Kristofer Liljeblad Guest
-
How to allow authenticated user to impersonate
If you are running under W2000, you must add the "Act as part of the operating system" privilege to the account that will try to impersonate. On XP... -
Can I force 401 error when user not authenticated?
Currently I have succesfully implemented role-based folder security using roles and web.config in each folder. This works great - if a user is not... -
User details in authenticated page
Hi, I implement forms authentication, and once authenticated, I want to display user name in a control. I created a user control, placed on... -
impersonating windows authenticated user?
I have a asp.net web application that i wrote for internal use in my company. The problem i'm having is being able to test the application as other... -
script not terminating on user abort
Hi! The connection_* function don't seem to work for me and I can no longer determine when the user has aborted the script. When I close the... -
Onur Bozkurt #2
Re: Terminating a authenticated user
You can use SignOut Method.
"Kristofer Liljeblad" <kristoferdontspam@mapaz.com> wrote in message
news:uZb7CVwPDHA.2432@TK2MSFTNGP10.phx.gbl...to> Hi,
>
> 1. How can I "terminate" an authenticated user? (I would like the server> 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
>
>
Onur Bozkurt Guest
-
James J. Foster #3
Re: Terminating a authenticated user
As for terminating an authenticated user, or "logging out", look at:
System.Web.Security.FormsAuthentication.SignOut();
--
James J. Foster, DotNetCoders
[url]http://www.dotnetcoders.com[/url]
"Kristofer Liljeblad" <kristoferdontspam@mapaz.com> wrote in message
news:uZb7CVwPDHA.2432@TK2MSFTNGP10.phx.gbl...to> Hi,
>
> 1. How can I "terminate" an authenticated user? (I would like the server> 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
>
>
James J. Foster Guest
-
Kristofer Liljeblad #4
Re: Terminating a authenticated user
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
"Onur Bozkurt" <onur.bozkurt@softhome.net> wrote in message
news:%23vASmZwPDHA.2476@TK2MSFTNGP10.phx.gbl...global.asax> You can use SignOut Method.
>
> "Kristofer Liljeblad" <kristoferdontspam@mapaz.com> wrote in message
> news:uZb7CVwPDHA.2432@TK2MSFTNGP10.phx.gbl...> to> > Hi,
> >
> > 1. How can I "terminate" an authenticated user? (I would like the server> > 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>> > and session_start and session_end)?
> >
> > /Kristofer
> >
> >
>
Kristofer Liljeblad Guest



Reply With Quote

