Hi,
This code works fine on Firefox (on refresh, on changing url in address bar
AND on closing browser)
http://www.w3.org/1999/xhtml";>
Test LogOut
function OutPopup(){
window.open('page2.html', 'My LogOut Popoup');
// the folowing alert will prove that the function executed
alert(
I think what you might want is to set expiration to 0. I haven't tried it
though. That sets the cookie expiration to now which I believe makes it a
"session" cookie which expires when the browser is quit.
Try setting one or both of these to 0:
settings.expiration = 3600# one
It is impossible to reliable detect that a user has a left a web site
unless we use websockets.
On Dec 18, 4:01 pm, pbreit wrote:
> Would that work when the user quits when visiting a different web site?
Would that work when the user quits when visiting a different web site?
Hi,
Javascript might help you i guess,
Event will be the "onUnload" in body tag, and your function will be
lauching a popup (window.open) with the exacte url used by logout button.
This should suffice unless user has blocked popups from your application.
I think what you want is for the login cookie to be a browser session
cookie and I'm not sure how to do that or if it's possible without
customization.
In this age when you pretty much never quit the browser, I'm not sure it's
that useful.
I think you can detect his closing the browser using javascript and
accordingly log him out of the browser.
Regards
Abhishek
7 matches
Mail list logo