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:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 10:48 AM To: [EMAIL PROTECTED] 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 : [EMAIL PROTECTED] > http://www.cyse.com > /---------------------------------------------/ -- Michel Laine -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]