Jump to content

Recommended Posts

Hi Guys,

 

i was hoping for some advice. Part of a site i'm making involves a count of the number of times a unique visitor hits a certain page. For example, if someone goes to www.mysite.com/counter.php?ref=5 - then for the integer object who's reference is 5 should increment. However, if someone refreshes the page, i dont want the number to increment again - i want it to be a count of unique visitors.

 

Does that make any sense? Any help is appreciated. My first thought is to use cookies and have a record of which pc has visited that link. But are there better ways?

 

Thanks in advance,

Link to comment
https://forums.phpfreaks.com/topic/170991-how-do-i-stop-refresh-hammering/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.