If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > only one user can be logged in at the same time using the same account?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-05, 16:39
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
only one user can be logged in at the same time using the same account?

I need to create a LOGIN system in which more than one user can not be logged in at the same time using the same account (same username and same password). How can I do it? Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-22-05, 06:02
jay82 jay82 is offline
Registered User
 
Join Date: Feb 2005
Location: London
Posts: 19
You can create table to see which users are currently logged-in or have additional field in User table called logged-in (type : yes/no)

When some user log in check whether is that already logged in or not (and ofcourse, user name and password is correct or not)

If already logged in then you can deny log in

When user log out change the logged-in status in database to false

but beware, there no full-proof cure for user leaving website with out signing... You can write some code in Global.Asa on Session_OnEnd event which will change the logged-in status in database to false. But that is also not that much reliable...

Hope this will help

ps: go to www.w3schools.com for more info on Global.Asa
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On