Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i invalidate user from session when he/she is not logged out successfully  RSS feed

 
Venkat Injapury
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
i have a problem while removeing the user from user vector.
Which is vector for adding and removing users when they are logged in and logged out successfully respectively. If a user does not logout successfully, that is when he close the browsers close button. how can i handle this problem.
if you have any code example. that helps me great.
Thanks in advance,
Venkat
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You could put a javascript .onClose() event that sends a hidden form to a servlet/jsp and logs the user out.
Or you could set the timeout for the session and handle it that way.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!