You could enter the time in the database when the page was requested and again when the next page is requested in the same session.
However, that would leave you with the problem that a user can use 2 browser-windows for the same session.
Also, a user could be doing something completely different while the page is open, like having a cup of coffee in the next room, hmmm, good idea
the latter problem you will probably have with every solution.
It also comes to my mind how usefull the data would be since the data is very likely not to be accurate!! (see above reasons).
Yes, I understand the general ideea but I dont know how to code that Jay. How can I find out the time spent from opening to closing that page? 8O And also, if the user signs out, how can i keep the session to log the time?Isn't it destroied?? 8O :?: :?: