A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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.
I agree. Here's the link:
subject: how to invalidate a session when browser is closed
HttpSessionListener if browser is closed
if browser is closed,does session expire?
Clear firefox cookies on closing the window
session info into db
how does the server expire the session
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014