Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Multiple sessions
07-27-2007, 02:58 PM #1
- Join Date
- Jun 2007
- Thanked 0 Times in 0 Posts
I have a problem which I need some help with.
I have a e-commerce site were the user must log in in order to use some of the functions. But I only want 1 active session for each user, so the user should not be able to have 2 browsers opened and being able to log in with both.
So I need to somehow know the difference between when a user has just shutdown the browser without correct login and when the user has logged out correctly.
Today we use DB in order to make this happen but then the user is able to login twice but as soon as he clicks on something (new PHP call) in the previous session he gets kicked out from his previous session.
I want to somehow see if the user already has a browser opened with a active session and tell him to use that one instead. And if the browser is closed but he has not logged out correctly then he should be able to log in again.