RE: [PHP-WIN]How to know how long a person stay

From: Date: Tue, 20 Nov 2001 19:26:54 +0000
Subject: RE: [PHP-WIN]How to know how long a person stay
Groups: php.windows 
Request: Send a blank email to php-windows+get-10546@lists.php.net to get a copy of this message
Patrick, A couple of ways you could do this: 1. Using jscript, set a cookie on the users machine with the time stamp of when they opened the page, using the onload event. Then when the user exits the page, using the onUnload event, read the cookie data, and send it to a php script to write it to a db or a flat file. 2. Use php sessions, I wont go into the details, but you can check the manual for further info http://www.php.net/manual/en/ref.session.php Voll -----Original Message----- From: Michel Laine [mailto:michel@systemtech.se] Sent: Tuesday, November 20, 2001 10:48 AM To: php-windows@lists.php.net Subject: Re: [PHP-WIN]How to know how long a person stay I do not believe that this is possible, not as you would it to work anyway. Something like this might be realized with sessions set to a very short timeout, but then your users might get pissed (due to the short timeout). Patrick Silva wrote: > Hello > > is it possible with PHP to know how much time a person stay on a web page? > > thanks > /---------------------------------------------/ > Patrick Silva > Gestion serveurs et domaines > Cyse Informatique > 105 avenue du Général Leclerc > 77400 Lagny sur marne (France) > tel : (33)1 64303232 - Fax : (33)1 64303222 > tel : (33)5 55805498 - Fax : (33)5 55805499 > E-mail : psilva@cyse.net > http://www.cyse.com > /---------------------------------------------/ -- Michel Laine -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#10546) next »