• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 214
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!


 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 214
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply
I am trying it right now let see.

Thanks once again.
 
Let's go to the waterfront with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic