From: FAQ server on 3 Jul 2010 19:00 ----------------------------------------------------------------------- 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%244x4.7344316%40news2-win.server.ntlworld.com The complete comp.lang.javascript FAQ is at http://jibbering.com/faq/ -- The sendings of these daily posts are proficiently hosted by http://www.pair.com.
|
Pages: 1 Prev: Energy Saving Tips Next: Canvas animations - what's up with the "Burst Engine" |