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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIS-Allow Multiple Logins, same username / Password

Status
Not open for further replies.

DeZiner

Programmer
May 17, 2001
815
US
I would like to only allow a user to be logged in on one PC at a time to avoid username/password sharing. I would also like to accomplish this without logging them in and out of the database if possible.

Right now, I write to an application variable their userid once they login, or check if their userid exists in that list when they login. All works EXCEPT, how can I remove their userID from that application variable list when their session timesout. My session timeout is set to 19 minutes. When session is over, I need to remove their id from the list. If they click the logout button then I manually remove it and that is no problem.

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
This is just one way of doing it.
Have a small JScript running on their pages, the Javascript starts a timer, after 19 minutes shows a message and calls a page in the server (letting you know they went away).In that page remove the user name from the list or just call the logout page....

I don't have the code for the timer right now, but you can google it and find small scripts that do this for you.



grtfercho çB^]\..
"Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------
 
Thanks for the reply. I found this tutorial, I believe by endless searching here at TT (I forget now) but with a little tweaking it's working great!


DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top