Hi,
I have a simple page counter on my php webpage.
Each time a user visits, a counter is incremented and stored in a database.
How do I ensure that these are unique visits and not incremented each time a user refreshes a page?
Thanks.
Hi,
I have a simple page counter on my php webpage.
Each time a user visits, a counter is incremented and stored in a database.
How do I ensure that these are unique visits and not incremented each time a user refreshes a page?
Thanks.
Hi,
How do I use this? Any examples? I log the user visit in database table.
Thanks!!
Store a cookie indicating, ‘counted’.
The site is to be accessible so cookies may be switched off.
Then use native PHP sessions, or failing that, store the IP address. However, bear in mind that many organisations and even households can share the same external IP address.