473,382 Members | 1,665 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,382 software developers and data experts.

Sign out another session

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
4 1674
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jet | last post by:
Hi all, There is a problem about single sign on not base on SharePoint . There are different web base application in my network group and all of them are not develop by the same technology, such...
1
by: Cowboy \(Gregory A. Beamer\) | last post by:
Quite a few months back, I was able to create a single sign on app for all apps on a single box (perhaps a domain, but never tested) by setting the auth cookie name to an identical value: ...
4
by: VB Programmer | last post by:
In my asp.net app I'm logging whenever someone signs in through the login page successfully. How do I log when they've "gone away", whether by closing the browser, the session vars for a person...
1
by: EricMatz | last post by:
I work for a medium-sized insurance company, developing web-based systems for our independent agents. There are four primary applications we provide - one that serves as an agent portal (ASP), and...
2
by: Chris Kettenbach | last post by:
Good morning all, Happy Friday! We have an ASP.net app. There is a sign out button which effectively signs a user out. A bug however is when the user clicks the back button; they can see the...
4
by: Jai | last post by:
Hi, I have a problem related to Login System. I am developing 3 websites for some institution.Now they want that if anybody had sign up for there site1.com(say), than he or she should be able...
7
by: Kesavan | last post by:
Is there any way to run a function or a code-block whenever the client- server communication breaks off. (ie power-off, browser-crash...) Why I need this is, I want to update a login-table to...
3
by: sravani2 | last post by:
Hi, I created the sign in page with username,password fields.and along with those fields i put the check box remember and select that one untill we sign out the page the username and password are...
29
by: Nick | last post by:
I've seen a few frameworks use the following: function $(id) { return document.getElementById(id); } Then to use: $('something').innerHTML = 'blah'; I'm just trying to roll this out to my...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.