Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset all sessions

Status
Not open for further replies.

seeyou

Programmer
Oct 11, 2002
12
PT
Hi.

In an ASP.NET application, how can I reset all sessions?
(I need this to force all users to a new login.)


Thanks in advance,
--- seeyou ---
 
session.abandon() or session.clear() should do the trick.

hth,
drew
 
What I really need to know is how can I close/reset/disconnect all open sessions(users) at the same time. Not my current session.

i.e. - I login as Administrator of my web application and I wish to disconnect all users, currently connected, to force them to do a new login.

Thanks in advance, --- seeyou ---
 
Restart IIS. That will definitely do it. ;-)

It's the only way that I know of to close all current sessions.
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top