I know about server variables and using the
But I am having two problems. How do I set them up in such a way that the information goes to a database? I can do it for a single page and the info is printed to that page. More importantly, how do I keep track of the length of time users stay on any given page?