Re: Knowing when a user leaves a page

From: Date: Sun, 20 Aug 2000 01:15:03 +0000
Subject: Re: Knowing when a user leaves a page
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-12622@lists.php.net to get a copy of this message
Jason Cox wrote: > > Well, I suppose you could use JavaScript to open a new window when they > leave the site and have it load a PHP page that records the exit but you run > the risk of making visitors angry. Well, you can use "ONUNLOAD" to retrieve a 1-pixel image or so from the server (with the SID attached to the request, of course) to an IMG tag on the page, but this is unreliable for many reasons: (1) user may have Javscript disabled or may at any time disable it; (2) the browser/computer may crash; (3) the user may disconnect from the Internet before closing the window; (4) the user may just walk away; (5) others. So if you want a quite unreliable method, that could do it. Ciao, Andreas > > Jason > > > Hello all, > > > > I have a the following situation: > > > > - I have build up an marketplace-system wich needs to know, when a user > > enters or leaves a page of the system ( to build up a site-walk-track). > > This is no problem, if the user changes pages on the system (I can use > > the Environment-Variable HTTP_REFERER ans sessions to keep track of his > > site-walking) but i have a problem, when he leaves the site (by going to > > another site or terminate his connection). > > > > So my question is the following: > > > > Is it possible to get informations, when a page is no longer accessed by > > the user (javascript ?) ? > > > > > > cu > > Martin > > > > > > -- > > -------------- > > Martin Neimeier > > Tel:+49(6262)912344 Fax:+49(6262)912347 > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > _______________________________________________________ > Site Design, Hosting, and E-Commerce at www.webpipe.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#12622) next »