Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 696
  • Last Modified:

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.
0
Easwaran Paramasivam
Asked:
Easwaran Paramasivam
  • 2
1 Solution
 
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

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now