Hi,
How I can restrict a single user login to the web application at the same time from different machines.
Restrict same user login in multiple machine
Moderator: General Moderators
Re: Restrict same user login in multiple machine
Make a session table in your database. Store the session and delete it when a user has been inactive for xx amount of minutes or when they log out.
If the user tries to login but the session is still valid, then block entry, otherwise let them in and create a new session.
I'm not talking about $_SESSION either. I'm talking about database and $_COOKIE.
If the user tries to login but the session is still valid, then block entry, otherwise let them in and create a new session.
I'm not talking about $_SESSION either. I'm talking about database and $_COOKIE.
Re: Restrict same user login in multiple machine
Hi Attero,
The last sentence "I'm not talking about $_SESSION either. I'm talking about database and $_COOKIE" - cleared my all doubts.
Thanks a lot
The last sentence "I'm not talking about $_SESSION either. I'm talking about database and $_COOKIE" - cleared my all doubts.
Thanks a lot