I need to restrict users from logging in to the application from multiple locations using the same id
Any help on how do i do this >
My major problem is how do i unlock the user once their session dies ?
my app involes suite of applicaions and we have a single signon server with multiple sessions being maintained between the browser and the multiple applications
we use encrypted cookie for this
I need to unlcok the user when all thesessions have died and maintain status quo if only one session dies
-
Restricting multiple login (3 messages)
- Posted by: Rajiv Narula
- Posted on: June 10 2003 16:23 EDT
Threaded Messages (3)
- Restricting multiple login by Fredrik Borgh on June 11 2003 02:57 EDT
- Restricting multiple login by Kalin Komitski on June 11 2003 04:48 EDT
- Restricting multiple login by Rajiv Narula on June 11 2003 12:22 EDT
-
Restricting multiple login[ Go to top ]
- Posted by: Fredrik Borgh
- Posted on: June 11 2003 02:57 EDT
- in response to Rajiv Narula
I'm not sure what app server/servlet container you're using, but if it supports Servlet API 2.3 you can always use the HttpSessionListener class and register creation/invalidation of sessions. If you store references to all sessions a user creates you can just check against that repository when the sessions get invalidated, and when they're all history just log out the user.
Fredrik... -
Restricting multiple login[ Go to top ]
- Posted by: Kalin Komitski
- Posted on: June 11 2003 04:48 EDT
- in response to Rajiv Narula
Restricting users from multiple logins may have unaccebtable side effect.
What if you a user closes his/hers browser without pressing "Log out". Then the application will wait for the entire expiration timeout before closing the session and disabling the user from logging on again for let's say 30 mins period. A workaround could be invalidation of the previous session on a new log in attempt but it might not be appropriate. So sometimes it's better to reconsider whether you realy need this feature.
Kalin -
Restricting multiple login[ Go to top ]
- Posted by: Rajiv Narula
- Posted on: June 11 2003 12:22 EDT
- in response to Kalin Komitski
I perfetly understand your concern that if a user closes the browser window - he will have to wait for the session to expire before he can login again...
I guess we are willing to love with this limitation if it cant be bypassed
(anyways its not for me to decide whether we should have this feature or not)