note 11534 rejected and deleted from setcookie by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 23 Feb 2001 20:14:24 +0000 |
| Subject: | note 11534 rejected and deleted from setcookie by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11498@lists.php.net to get a copy of this message | ||
i try to use this function to prevent that the same visitor vote for more than one time in a hour
bur it don't work, the code is this:
if($vote!=1)
{
$time=time();
$time=$time + 36000;
setcookie("vote","1",$time);
}
If the visitor vote, the vote counts, than if it try to vote again the vote don't count, but if
he try again it counts, the cookie is delete and i don't know why, i use IE 5.5.
Can some one help me.