Sign out another session

  • Thread starter Thread starter Ryan Moore
  • Start date Start date
R

Ryan Moore

I'm using Forms Authentication for user logins in an ASP.NET app.

Is there any way to log out another Session when a user logs in?

Example:
The site only allows 10 users to be logged in at once.
When the 11th user logs in, the server logs out the 1st user and logs in the
11th (kicks out the first to make room for the last)

thnx
 
I would something like :
- when a user logs in, its session id is registered in a list
- if the list contains more than 10 userers then the first is to be removed.
- could perhpas sotre this in a queue in an application variable.

I would avoid this myself as this is a bit annoying
If you really have I would rather prevent the last one to log rahter than to
fire someone that could be active.

Any reason for doing so ?

Patrice
 
This is Session.Abandon...

I wouldn't want to insist too much but I would still consider this design.
For example if I'm fired, I could log in again and would fire then the first
connected user who could reconnect then etc...
 
Yes, I agree. the example I used is not the way the application will
actually work, just an example of the type of function I'm trying to
accomplish.

thnx
 
Back
Top