Record User Leaving Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gazzieh
Forum Commoner
Posts: 40
Joined: Wed May 19, 2010 7:46 am

Record User Leaving Page

Post by gazzieh »

Hi

I would like to record the time when someone leaves one of the pages on my site so that I can generate a time on page calculation. I know that there is the Javascript command of onbeforeunload but wondered if there was another way to do this.

I know, for example, that my visitor stat system records where someone has come from, the time they arrived and the time they left a page so I wondered if this general information is transmitted by the user's action.
Post Reply