telling if the page has been refreshed
Posted: Sat Jun 28, 2003 4:55 pm
Hi all,
I'm trying to keep track of statistics on a few pages to see how many times different users (and different types of users) are accessing certain pages, but I have no way of telling if a user is actually coming to the page for the first time or just refreshing the page. Obviously, I don't want to report any stats for a user who is simply refreshing the page. Ideally, checking $HTPP_REFERER against $PHP_SELF is a good idea, but $HTTP_REFERER is unreliable (even on the machine I'm testing it on). Any suggestions?
I'm trying to keep track of statistics on a few pages to see how many times different users (and different types of users) are accessing certain pages, but I have no way of telling if a user is actually coming to the page for the first time or just refreshing the page. Obviously, I don't want to report any stats for a user who is simply refreshing the page. Ideally, checking $HTPP_REFERER against $PHP_SELF is a good idea, but $HTTP_REFERER is unreliable (even on the machine I'm testing it on). Any suggestions?