-
Jan 16th, 2018, 03:55 AM
#1
Thread Starter
Member
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.
-
Jan 16th, 2018, 04:55 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|