preventing multiple logins in asp.net

  • Thread starter Thread starter The Crow
  • Start date Start date
T

The Crow

if a user logs in, i want other logged in user with the same credentials to
log out. how can i solve this problem?
 
Hi,

You could maintain a collection( hashtable? ) in Application with the
userID as key and the session ID as the value, on each request you have to
check if the current session is registered in the application as the last
session for that login, if not just logoff , if no such login exist in the
collection this is the first time, and you just add it.

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top