• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logout on browser close

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I run logout routine when user closes a browser?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't bother trying. It requires correctly catching browser events client-side (and firing off a request to the server) which is a black art, and never works the way you want it to. Easier is to timeout idle sessions.
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the info!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic