Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Satchidananda Mohanty
Ranch Hand
Posts: 78
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4587
302
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • 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 ??

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic