Handling multiple login session from the same user
Posted: Thu Mar 06, 2008 1:29 pm
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
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