FAQ Topic - How do I log-out a user when they leave my site?

F

FAQ server

-----------------------------------------------------------------------
FAQ Topic - How do I log-out a user when they leave my
site?
-----------------------------------------------------------------------

This cannot be done reliably. Here's why:

*
The user may disable JavaScript so the log-out script will
never execute.

*
The user may not be on-line when they close your web page.

*
Javascript errors elsewhere in the page may prevent the script
executing.

*
The browser may not support the onunload event, or may not fire
it under certain circumstances, so the log-out function will
not execute.

The URL below has more information.

http://groups.google.com/groups?selm=BlmZ7.55691$4x4.7344316@news2-win.server.ntlworld.com


===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.
 
E

Evertjan.

Dr J R Stockton wrote on 08 mrt 2007 in comp.lang.javascript:
In comp.lang.javascript message <[email protected].


Might it be worth adding "or fall asleep" and the corresponding answer?

And no logging out is necessary, if they leave my site .... alone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top