| MyDomains.net Name: -Unknown- Location: Inside your head... Join Date: Oct 2005
Posts: 807
NP$: 45.70 ( Donate)
| A script that marks the start-time for that IP#, then an "onunload" posting to it to mark the "leaving-time" is probably your only real viable option. While others may think of another way (if so, please educate me  ), that (an onunload event) is the only solution outside Ajax that I can think of. With Ajax, you could continually call a timer from a PHP script. The problem with doing that is that you would want (to get a good "average") to have it call the time atleast every second, and the bandwidth will end up killing you if you used this Ajax method
Possibly a combo of the two: calling the PHP script on "onload", then again on "onunload", both via Ajax, might do the trick for you 
__________________ ♥ In loving memory of my mother - Valettajho - Sept. 23, 2008 ♥
A devoted mother, sister, grandmother, great-granddaughter, and a true friend to anyone blessed enough to have met you. You taught me well, and made me who I am today. I can only hope to live the remainder of my life in a fashion that you would be proud of. Your life may have been taken by the hands of a man, but in doing so he delivered you into the hands of God. You will forever be missed. |