Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent duplicate users from logging in?

Status
Not open for further replies.

dragonturtle

Programmer
Sep 25, 2003
55
CA
Is it possible to use regular ASP to prevent duplicate users from logging into a site? E.g. If Johnny is logged in, another user can't use Johnny's user/pass to log in simultaneously.

I thought about using a database column called [logged] which is set to 1 when a user is logged in, and set to 0 when logged out. Problem is I don't know how to reset it to 0 if the user doesn't hit the logout button (session timeout or browser closes).

 
try session.end in a global.asa file. You can find tons of info on global.asa.

Hope this help.
 
Or you could add a field on the database that marks when Johnny logs in and clears it when Johnny logs out if that field is populated already quick them out


logo.gif width='75' height='15'
 
use a session.end script to manage this with a log out button...if he doesn't press the log out button then he'll have to wait for the session timeout script to clear the entry...

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top