How to ensure that only one user is logged in an application?

In ASP.NET application how to ensure one user login in only one machine?

If the user logged in one machine and trying to login in another machine one pop-up should should shown saying that 'Want to

logout from other logged in system?'. If yes, sessions from other machine should be killed and allow to login in the current system. How to achieve this? Please guide me.
LVL 16
Easwaran ParamasivamAsked:
Who is Participating?
 
Luis PérezSoftware Architect in .NetCommented:
0
 
Easwaran ParamasivamAuthor Commented:
There is one more option. In database's user table we could have a bit column IsLoggedIn
Once Logged in this could be set as 1. If logged out this could be 0. While logging in from another machine, the db value will be 1. In this case we could prompt accordingly.
0
 
Easwaran ParamasivamAuthor Commented:
There is one more option. In database's user table we could have a bit column IsLoggedIn
Once Logged in this could be set as 1. If logged out this could be 0. While logging in from another machine, the db value will be 1. In this case we could prompt accordingly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.