
Originally Posted by
r937
if staff in a remote office all use the same IP, what are you gonna put in the cookie? how will you know it's not somebody different each time? what data are you going to assign to a user to check if it's been duplicated?
Actually, why does the cookie have to contain anything identifying? Surely the presence of the cookie is the only thing we need here.
Pseudo:
PHP Code:
<?php
if(isset($_COOKIE['voted']) === false)
{
doVote();
$_COOKIE['voted'] = true;
}
header('Location: http://www.yourserver.com/thanks.php');
exit;
?>
Bookmarks