wood burning stoves 2.0*
The moose likes JSP and the fly likes How to manage refresh a web for a session expired after another system's login? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to manage refresh a web for a session expired after another system Watch "How to manage refresh a web for a session expired after another system New topic
Author

How to manage refresh a web for a session expired after another system's login?

Rd Dari
Ranch Hand

Joined: Feb 22, 2010
Posts: 206

Hi all,

My query is that if a user is login in pc and without logout he/shee will login in another system or another state/country that time. Then how it is possible to session invalidate from first system for the same user id. (Means I am login in a software then at that exact time I want to login in the different system but also want that my first user session should be logout automatically, how it will possible)

my work has been done if I login in a system and want to relogin that system or another system for the same user Id then I am successfully logout using javascript confirmation from the first system or browser but before I relogin from the second system/browser then my first session is logout after press F5 but if I do not F5 then it will automatically relogin during the second system/browser's session value.
How it is possible Please make me right in this concept.

Thanks in advanced!!!


jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi ,

I cant provide you the exact code but you can keep the username,IP in the map which will be available in application and will be common for whole application .Once user logged in you need to add values in to the map and remove the entry from the map once the user is logged out.

As far as multiple login is concern if the user try to login from different system at the same time you can check the value into the map and based on that you can invalidate the session by calling the session listener.

Hope this will help you ..

Regards
Jatan bhavsar



Rd Dari
Ranch Hand

Joined: Feb 22, 2010
Posts: 206

Thank you for your reply
I am trying it right now let see.

Thanks once again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to manage refresh a web for a session expired after another system's login?