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

prevent multiple login from same computer

Status
Not open for further replies.

bereza

Technical User
Jun 14, 2006
105
EU
hi,

I need som lgoic which describes how prevent multiple user logins from same pc.

it is allawed if you are logged in as user1 by IE and try to login as user2 from mozilla.but not allowed from same pc and same browser.

if you use same browser and same pc when user1 refreshes the page or goes to new page it will use user2's accounts.

thank you
 
In your login logic, save the name of the PC to a table with other info. When the user logs in, check for this computer name in the table, if it exists, display a message that they are already logged in. When they log out, or the session ends, remove the row from the table.
 
I have to agree. Especially when the user lets the session timeout. It is not guaranteed that the code will run in the global.asax to clean up the log in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top