A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to invalidate a session when browser is closed
Joined: Mar 12, 2008
Oct 28, 2010 04:05:18
I wanted to destroy the session when browser is closed without logout .
Please help !!
Thanks in advance
Author and all-around good cowpoke
Joined: Mar 22, 2000
Oct 28, 2010 06:49:33
There is no way for the server to detect the closing of the browser reliably.
Just let the built-in time-out mechanism do its job.
Java Resources at
I agree. Here's the link:
subject: how to invalidate a session when browser is closed
how does the server expire the session
if browser is closed,does session expire?
session info into db
HttpSessionListener if browser is closed
Clear firefox cookies on closing the window
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013