Sign out another session

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
 
P

Patrice

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
 
P

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...
 
R

Ryan Moore

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
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top