LordLanky Posted August 19, 2009 Share Posted August 19, 2009 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, Quote Link to comment https://forums.phpfreaks.com/topic/170991-how-do-i-stop-refresh-hammering/ Share on other sites More sharing options...
JonnoTheDev Posted August 19, 2009 Share Posted August 19, 2009 Cookies or sessions. A cookie would be the preferred method IMO. Quote Link to comment https://forums.phpfreaks.com/topic/170991-how-do-i-stop-refresh-hammering/#findComment-901863 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.