I'm building a top 100 script, and would like to make it as hard as possible for users to cheat, and vote for a site multiple times, so I figured I would set cookies and record IP addresses. Easier said than done, as i've found.
My problem is setting the cookies.
Say user (A) clicks the vote link http://.../vote.php?site=website from another site.
It takes him to vote.php on my site, where it then does 3 things. 1)Checks to see if he's already voted for that site. 2)If he hasn't record his vote 3)Set a cookie for next time he tries to vote.
I can't figure out what kind of cookie to set, since I want the visitor to be able to vote for all the sites, but only once per site. I can't just set 1 cookie, it would have to be 1 cookie per site.
So how do I determine the name of the cookie to set and how do I later check to see if that cookie is set?
Thanks
Nate