I am running a voting page and to avoid people voting more then once am setting a Cookie through Javascript which works great after they've gone to another page, but if they click refresh and resend the POSTed voting, it will add another vote to the tally, so I want to check for the cookie before the php even updates.
How do I check for a cookie using php? I've tried:
if(isset($_COOKIE["Cookie Name"]) )
{
echo"Cookie IS Found";
}
else
{
echo"Cookie Not Found";
}
But that doesn't seem to work. Also, how do I set a cookie in php?
Thx in advance