473,414 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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
Nov 17 '05 #1
3 1876
You can use SignOut Method.

"Kristofer Liljeblad" <kr***************@mapaz.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #2
As for terminating an authenticated user, or "logging out", look at:

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

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Kristofer Liljeblad" <kr***************@mapaz.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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

Nov 17 '05 #3
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" <on**********@softhome.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
You can use SignOut Method.

"Kristofer Liljeblad" <kr***************@mapaz.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Henry Hartley | last post by:
I've got a web site that has a mix of public and private sections. When you first come to the site, the final option on the menu is "Private" which forces an authentication and then gives you an...
4
by: Ollie | last post by:
I am looking to implement impersonation in an ASP application I am writing and am using the MS article Q306158 as a reference. This article refers to "the IIS Authenticated Account or User". Can...
23
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an...
2
by: David Krussow | last post by:
The 2nd parameter of the method controls whether a persistent cookie is created - so that ASP.NET can "know" if the current user has been previously authenticated (during previous browser...
2
by: Rodusa | last post by:
I am trying to Synchronize anonymous users with authenticated uses using Profile_MigrateAnonymous. However Profile_MigrateAnonymous only carries information in one direction, for instance, if I...
5
by: Shimon Sim | last post by:
I am working with LogIn control and need to set some property for profile after user is authenticated. I thought that LoggedIn event is the right place but system tells me that the property can't...
3
by: shapper | last post by:
Hello, How to I check if a user is authenticated and if it is what is its role? I am using Asp.Net 2.0 and forms authentication. Thanks, Miguel
3
by: shapper | last post by:
Hello, I need to check if a user is authenticated. I tried everything I could think and find: If Membership.ValidateUser("shapper", "27lamps11") Then...
2
by: shapper | last post by:
Hello, How can I check if a user is authenticated? I am using ASP.NET Membership forms authentication. Thanks, Miguel
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.