Re: detecting browser close or change of url
| From: | Oscar Rylin | Date: | Wed, 02 Jul 2003 15:18:58 +0000 |
| Subject: | Re: detecting browser close or change of url | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29034@lists.php.net to get a copy of this message | ||
You might also want to take a look at PEAR Auth
http://pear.php.net/manual/en/package.authentication.auth.intro.php
--rylin
Hutchins, Richard wrote:
Jamie, Read through this thread: http://marc.theaimsgroup.com/?l=php-db&m=104162246227155&w=2 Since you are using a login/logout system, you may be able to use some of the suggestions in here to solve your problem. Rich-----Original Message----- From: Oscar Rylin [mailto:oscar.rylin@telia.com] Sent: Wednesday, July 02, 2003 11:01 AM To: Jamie Saunders Cc: php-db@lists.php.net Subject: Re: [PHP-DB] detecting browser close or change of url PHP is server-side, not client side. That said, what you could do is simply make use of window.onunload or window.onclose in javascript to bring up a second window/page.. of course, anyone with half a brain and a popup-stopper won't get that page :) --rylin Jamie Saunders wrote:Hi, I'm trying to figure out a way of detecting when a usercloses the browser,or if they leave the site. If they do this I'd like tochange a value inthe database, i.e: if (browser is closed by user or they leave site) { // run php code to update database } Any help much appreciated.-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php