By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

Sign out another session

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2

P: n/a
How do you "Sign Out" another user's session.... Session.Remove?
"Patrice" <no****@nowhere.com> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
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
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #3

P: n/a
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...
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:uQ**************@tk2msftngp13.phx.gbl...
How do you "Sign Out" another user's session.... Session.Remove?
"Patrice" <no****@nowhere.com> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
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
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
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



Nov 18 '05 #4

P: n/a
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
"Patrice" <no****@nowhere.com> wrote in message
news:u3*************@TK2MSFTNGP09.phx.gbl...
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...
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:uQ**************@tk2msftngp13.phx.gbl...
How do you "Sign Out" another user's session.... Session.Remove?
"Patrice" <no****@nowhere.com> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
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
"Ryan Moore" <ry*******@hotmail.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
> 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
>
>



Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.