Page 1 of 1
Restrict same user login in multiple machine
Posted: Tue Feb 10, 2009 11:09 am
by jklanka
Hi,
How I can restrict a single user login to the web application at the same time from different machines.
Re: Restrict same user login in multiple machine
Posted: Tue Feb 10, 2009 11:13 am
by Attero
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.
Re: Restrict same user login in multiple machine
Posted: Tue Feb 10, 2009 12:59 pm
by jklanka
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