A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to kill the session on browser close
Joined: Apr 22, 2004
Apr 22, 2004 05:26:00
I want to kill the session on browser closes using
i.e, want to capture the event on the browser closes and then kill the session.
Joined: Mar 18, 2004
Apr 22, 2004 06:03:00
you can invalidate the session using session.invalidate() method.
Joined: May 29, 2003
Apr 22, 2004 07:21:00
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Joined: May 26, 2003
Apr 22, 2004 17:52:00
Submitting to the server on browser close only works in IE. Search the HTML forum for details. It's been discussed there serveral times.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: How to kill the session on browser close
Killing session on closing a browser
session handling in case of abnormal shutdown
Destroy session when close browser.
Killing session when closing the browser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014