Results 1 to 2 of 2

Thread: Prevent Same User Login to Multiple Computers Simultaneously

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2016
    Posts
    60

    Prevent Same User Login to Multiple Computers Simultaneously

    Hello guys how can i prevent users to login with their User ID at the same time into different computers. I have a group of Admin and Simple users that i created with their privileges and User ID and Password.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Prevent Same User Login to Multiple Computers Simultaneously

    There's no magic to it. When a user logs in, store a value in the database to indicate that they are logged in. When they log out, reset that value. Don't let them log in while the value is set. Pretty much exactly as you would do it if you were using pen and paper. You need to think a little bit beyond that though, because they may not log out explicitly. To handle that, you might want to update a value in the database each time they do something in the application and then log them out automatically if there's no activity for a certain period of time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width