Jump to content

How do i stop refresh 'Hammering'?


LordLanky

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.