473,396 Members | 1,891 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 Multiple Logins

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 tries to login with the same userID.
We are using C#.

Please help us how we can do this.
Thanks,
Sudheer.
Nov 19 '05 #1
2 4451
Add the login userID's to a "loggedin" database table,
and check whether the current userID used to login
exists in the table.

For that to work, however, you need to insure that users
are recorded as logged out when they exit the application.

You can do that by checking if their sessions have expired,
and deleting the userID record from the table.
Linking the SessionID to the userID should be enough.

Juan T. Llibre
ASP.NET MVP
===========
"Sudheer" <su*************@yahoo.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
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 tries to login with the same
userID. We are using C#.

Please help us how we can do this.
Thanks,
Sudheer.

Nov 19 '05 #2
sometime your users are locked out because their last session still not
expired, often in 15 minutes. Except they was clicked Logout link before.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u3**************@TK2MSFTNGP15.phx.gbl...
Add the login userID's to a "loggedin" database table,
and check whether the current userID used to login
exists in the table.

For that to work, however, you need to insure that users
are recorded as logged out when they exit the application.

You can do that by checking if their sessions have expired,
and deleting the userID record from the table.
Linking the SessionID to the userID should be enough.

Juan T. Llibre
ASP.NET MVP
===========
"Sudheer" <su*************@yahoo.com> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
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 tries to login with the same userID. We are using C#.

Please help us how we can do this.
Thanks,
Sudheer.


Nov 19 '05 #3

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

Similar topics

4
by: William Logan | last post by:
Hello all DBAs what is the best methodolgy to replace a server with a new server in a multiple sql server environment.. Is is using back up/restore to another/bridge type server then rename...
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...
2
by: Shashi | last post by:
My development environment is ASP.Net 1.1. When the user does multiple logins to the system and navigates to different screens and clicks back button sometimes it reading the session variables...
10
by: Conformix Sales | last post by:
Any thought about how can I stop a user from logging into the application multiple times. I am using forms authentication.
2
by: Calvin KD | last post by:
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...
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...
18
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site...
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...
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...
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
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...
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
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.