• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to invalidate a session from another computer by using ip/MAC sessionid

 
Ranch Hand
Posts: 78
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I wanted to invalidate the session of one computer from another computer.

For e.g. am logged in to my account in one computer and left that computer without looging out. Now While am going to login agian with another machine it shows that the same user credentials are logged in with another system and please sign out all other sytems from here and login again

On this submit I want to invalidate the sessions with all other systems. I save all the ip and session id with our database. So my query is can I invalidate those sessions by using the session id and ip address .

Gmail is having the same feature.
So guys if you have any idea kindly let me know.


Thanks in advance,
zeet
 
Sheriff
Posts: 7134
1360
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do it in many ways. One way is checking the last login time from a filter. Once the user has requested to invalidate all of the other sessions, the filter can check the requests coming with the same credentials, and discard all the sessions if their last login time is prior to the time that the invalidation has request issued.
 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a nice question , how to invalidate a Previous session of same crediantals ??

and discard all the sessions from a Filter



Assume that the Filter has found out an existing user , but how can from a Filter i can invalidate the session , Is it possible to get that sessionId (The previous Logged SessionId) to invalidate it ??

 
reply
    Bookmark Topic Watch Topic
  • New Topic