Most of us know how to get the IP address of someone that is visiting our web site:
$ip = getenv("REMOTE_ADDR");
But does anyone know of a way to tell when that person has left the web site? I would like to know just how much time a person spends on one of my web pages. Does the PHP library have any function that will do this?
Or, is there another method to track this parameter (cookies, sessions, etc.) that could work?