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

Preventing same user from logging twice

Hi,

I have a website running on ASP.Net on IIS 6.0. This website has more than
10000 users login everyday. At times the users login with the same user name
and password more than once at the same time.

I would like to prevent this from happening as it creates a huge problem at
the back end (SQL 2k).

I maintain all logins in a session to validate. For example if userid "xyz"
logs in, I maintain "xyz" in a session.

Is there any other way to traverse through all the session values? This way
I would be able to prevent "xyz" from logging in again, when he is already
logged in.

Can someone please help me as I am facing a lot of problem because of this?

Thank you.

Regards,
Kart

Jul 22 '05 #1
1 3689
IMO not easy. The easiest way I see would be to record at login time the
session id and to accept request only with this id. Note though that it
means that if someone logs in under an account, the currently connected
person will be unable to carry on its session.

If you do it the other way round (ie. keeping the session for the first
connected person) you'll ran into issues caused by the need to be able to
distinguish that the session expired...

Actually my first thought would be rather to see if the problem caused by
multiple sessions could be corrected. Generally this is when you associate
some temporary data with the user instead of associating these data with the
session (for example in a temp table you may want to use the sessionid
rather than the user id).

Patrice

--

"Karthik" <Ka*****@discussions.microsoft.com> a écrit dans le message de
news:3B**********************************@microsof t.com...
Hi,

I have a website running on ASP.Net on IIS 6.0. This website has more than
10000 users login everyday. At times the users login with the same user name and password more than once at the same time.

I would like to prevent this from happening as it creates a huge problem at the back end (SQL 2k).

I maintain all logins in a session to validate. For example if userid "xyz" logs in, I maintain "xyz" in a session.

Is there any other way to traverse through all the session values? This way I would be able to prevent "xyz" from logging in again, when he is already
logged in.

Can someone please help me as I am facing a lot of problem because of this?
Thank you.

Regards,
Kart

Jul 22 '05 #2

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

Similar topics

2
by: BenM | last post by:
Description: I would like to prevent a user from logging in with their user/password combination on a different computer or even a different browser window, if they are already logged in. I have...
8
by: CJM | last post by:
How do people go about preventing the user from submitting a form for a 2nd time? For example, the user submits a form, clicks on the back button, and the submits the form again. I have used...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
0
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
1
by: Kirk Groome | last post by:
Hi all, I'm working on a web site and I would like to use the VS login controls. The problem I'm having is that when I create a new user all works fine. The user gets added to the database and...
5
by: Ritesh Raj Sarraf | last post by:
import os, sys, logging logger = logging.getLogger("my_app") conerr = logging.StreamHandler(sys.stderr) conerr.setLevel(logging.DEBUG) conerr_formatter = logging.Formatter('%(levelname)s...
3
by: gehegeradeaus | last post by:
Is there a way to prevent one user-account from logging in twice on the same system when using sessions? I also put the session of a user in a mysql database : CREATE TABLE `login_sessions` (...
5
by: Shiao | last post by:
Hi, I am getting duplicate log entries with the logging module. The following behaves as expected, leading to one log entry for each logged event: logging.basicConfig(level=logging.DEBUG,...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
The majority of pages on our site need authentication (forms auth against the aspnetdb database). I created an '~/auth' folder with its own config file forcing authentication for any pages in the...
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: 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:
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.