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.
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.