Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to terminate session when brower X button is clicked?

Status
Not open for further replies.

sadhi

Technical User
Sep 10, 2003
12
IN
As of now I'm terminating the session using session time out.But I want to terminate session when the user closes the browser window using X button.
How to implemen this using Javascript/J2EE?
 
AFAIK the session gets terminated automatically when the browser closes.

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
When the browser in closed using X button the session still exists in the server till the timeout period.
Could anyone please give a Javascript/J2ee implementation of achieving this?
 
this has to be done on the server side by a page that gets called on the client side upon closing IE.

check out this link

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top