473,324 Members | 2,548 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,324 software developers and data experts.

How to limit logons to a website

What is the best way to limit logons to a website? We assign a user ID and
password to each user. These are stored in the database (SQL Server). We
want to do two things:

1. Only allow one person to use a specific user ID at a time. So if I log
on as user ABC and then someone else tries to logon as ABC, they will not be
allowed to logon.

2. Limit the total number of users logged on at a given time. So say there
are 10 users and we want to only allow 3 to use the site at a time. So if 3
people are already logged on and a 4th person tries to log on, they will be
rejected.

Are there any "standard" ways to implement this kind of functionality?

Thanks,
Dennis

Jul 19 '05 #1
1 1878
1.) You could record whether or not the person is logged in, in your
database.
2.) Set an Application variable to the current number of users.

Both of these "solutions" have the same problem, you need some way of
logging a person out, and reducing the Application variable. A "good" user
will click on your logout button which you could use to change the two
values.
You can use Session_onEnd to change the values but it's not very
reliable.... http://www.aspfaq.com/show.asp?id=2078


"Dennis Bronstein" <db********@yahoo.com> wrote in message
news:OF**************@tk2msftngp13.phx.gbl...
What is the best way to limit logons to a website? We assign a user ID and password to each user. These are stored in the database (SQL Server). We
want to do two things:

1. Only allow one person to use a specific user ID at a time. So if I log on as user ABC and then someone else tries to logon as ABC, they will not be allowed to logon.

2. Limit the total number of users logged on at a given time. So say there are 10 users and we want to only allow 3 to use the site at a time. So if 3 people are already logged on and a 4th person tries to log on, they will be rejected.

Are there any "standard" ways to implement this kind of functionality?

Thanks,
Dennis

Jul 19 '05 #2

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

Similar topics

4
by: Paul Malcomson | last post by:
I'm trying to finish implementing security on my database. I have secured the .mdb with a .mdw file as per the MS security FAQ with no problems. The last part of security that I need to...
2
by: César Santos | last post by:
Is there a way to find out when someone logs into a computer and when they logoff? I want to see when an employyee has been logging in and out for the last past month. Is that possible?
5
by: Bruno Mendonça | last post by:
My boss asked me to build a program to create a report with logon/logoff events for all users within our windows domain. I'm using .Net to do so and decided to have a program running on the Domain...
6
by: Nosferatum | last post by:
Hi, on my Apache server I want to limit access to a certain file ouput (from php/MySQL) to just one IP. The idea is that users from another site should click a link whic redirects them to my...
6
Ali Rizwan
by: Ali Rizwan | last post by:
Any body knows how to make bootscreens and logons for XP without using any software. And how to apply Help
0
Nepomuk
by: Nepomuk | last post by:
OK, let's do it! Prepare the picture Create a bmp picture, size 640 x 480, 16 Colors. MS Paint can save pictures in that format, many other graphic editors can do it too. Name your...
0
by: pechar | last post by:
Hi everyone, I know this is not an SQL Server question but this is I guess the closest I can get in choosing a forum. Our client has a foxpro database which he uses for inventory management...
1
OuTCasT
by: OuTCasT | last post by:
Could someone please tell if its possible to use a server/client side cookie to limit the amount of times that a website is displayed ? Like for instance i would like to demo a website but limit the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.