Page 1 of 1

Handling multiple login session from the same user

Posted: Thu Mar 06, 2008 1:29 pm
by francisjeffy
Scenario:- When two users login with the same login information, The first user will get logged of showing a message "you have been logged out because you logged in to a different computer", and the second user will be logged in.

This scenario will be useful in certain cases where only one session is allowed for a login.

Solution

-> Store the login session into a table.
-> Update the login session in the table for each login.
-> Compare current login session with the login session value in the table
-> If both are same, continue, and if they are different log off User.


Hope it helps,

jeF

Re: Handling multiple login session from the same user

Posted: Thu Mar 06, 2008 2:46 pm
by Zoxive
I'm not sure what this post is for.

Are you having problems implementing this system or are trying to help others?

Re: Handling multiple login session from the same user

Posted: Thu Mar 06, 2008 3:34 pm
by francisjeffy
Sorry for the confusion, thats a solution.

That was a problem I faced recently, and figured out a solution for it, thought it might be useful for someone...

jeF