Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply
I am trying it right now let see.

Thanks once again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic