File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session handling

 
Raj Joe
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i clear the http session data when the user closes the browser.
Can i invalidate a user session when the user closes the browser.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might be able to use JavaScript to send some request back to the server upon closing the browser window. I don't know for sure.

I do know that this is not a Java in General (beginners) type question.

If you're looking for a better understanding of how sessions are handled in Java-based web applications, I recommend moseying on over to the Servlets forum.

I'm moving this thread to the HTML and JavaScript forum...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raj,
You can't do this in Netscape at all. There is no way to detect the browser close. The best you can do is let the session timeout.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic