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

Restrict number of concurrent login - Help me olease

Hi everyone,
Can someone suggest a way of monitoring the number of logins for each user
in a particular session to make sure that a particular user cannot log in
twice in the same session? I have thought of using Application-level counter
or even store the counter in the database but it will not work (100% of the
time that is) when the user's session timed out, or user clicking the IE back
button or even close down the browser completely.

Any suggestion is greatly welcomed.
KD
Nov 19 '05 #1
2 2402
Hi Calvin,

The problem is, there is only one remote client per Session, so your
question doesn't exactly make sense as stated. A Session is created every
time a user accesses your web site, and lasts for 20 minutes after the
client stops making requests, when it times out due to a lack of requests.
So, what exactly is it you're trying to prevent? Apparently, you're
referring to something other than Session (which is why tinkering with the
Session isn't a solution), and you're having some trouble describing it, so
some more description of the problem would be helpful. More is better.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
Hi everyone,
Can someone suggest a way of monitoring the number of logins for each user
in a particular session to make sure that a particular user cannot log in
twice in the same session? I have thought of using Application-level
counter
or even store the counter in the database but it will not work (100% of
the
time that is) when the user's session timed out, or user clicking the IE
back
button or even close down the browser completely.

Any suggestion is greatly welcomed.
KD

Nov 19 '05 #2
Hi Kevin,
Thanks for your reply. What I really wanted to control is the number of
logins per account to 1 at any one time. What that really means is we don't
want the user's credentials, at best, being passed around instead of having
to request additional login accounts and as the consequence, no control over
user's actions is possible. Therefore, I'd like to somehow lock the account
once the user is successfully logged in and unlock it (automatically if
possible) when the user finished with the session.
Sorry about my wordly description of the problem but I hope you and everyone
out there can understand what I'm trying to do and offer much needed
resolution.

Look forward to your reply.
KD

"Kevin Spencer" wrote:
Hi Calvin,

The problem is, there is only one remote client per Session, so your
question doesn't exactly make sense as stated. A Session is created every
time a user accesses your web site, and lasts for 20 minutes after the
client stops making requests, when it times out due to a lack of requests.
So, what exactly is it you're trying to prevent? Apparently, you're
referring to something other than Session (which is why tinkering with the
Session isn't a solution), and you're having some trouble describing it, so
some more description of the problem would be helpful. More is better.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
Hi everyone,
Can someone suggest a way of monitoring the number of logins for each user
in a particular session to make sure that a particular user cannot log in
twice in the same session? I have thought of using Application-level
counter
or even store the counter in the database but it will not work (100% of
the
time that is) when the user's session timed out, or user clicking the IE
back
button or even close down the browser completely.

Any suggestion is greatly welcomed.
KD


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Terabyte | last post by:
I have a client that wants me to create a form that will contain about 50 condo listings. He wants me to place a restriction on the form as to the number of Condo listings a user can...
3
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built...
2
by: Sudheer | last post by:
Hi All, We need to restrict multiple users login to the system. If one user is online with one userID, we need to show the message "This user already logs in to the system" to the other user who...
2
by: ad | last post by:
I use Login control's Authenticate event to authenticate use. I find that different users can use the same ID to login in the same time. How can I restrict that the some ID can only login once in...
10
by: shankhar | last post by:
Hi all, In my project there is a requirement. If a user logged in at a time since he/she logged out others are not allowed to loggin using the same user name. That is to avoid multiple logins...
2
by: mktselvan | last post by:
Hi, Existing running oracle application 11i (11.5.8) Database version is 8.1.7.4 There is any command / way to know the number of concurrent users for this application. ...
0
by: contactme | last post by:
Hi, Is it possible to open concurrent connections using Net::IMAP::Simple library ? My IMAP server allows 4 connections per ip, so I am having following problems while using Net::IMAP::Simple and...
17
by: yuvang | last post by:
Hi all I have a mdb with login name and password form. There are several login names, i defined through a table "User_login". Here the problem is at a time a single user is able to login in...
2
by: beyrself | last post by:
Hi, i've created a application using microsoft visual studio 2005. I've publish the exe application using IIS. now is issue is. I need to restrict the login part. For example is A login to this...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.