Bug #9424 Updated: Setcookie don't work well

From: Date: Mon, 22 Apr 2002 16:22:33 +0000
Subject: Bug #9424 Updated: Setcookie don't work well
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5570@lists.php.net to get a copy of this message
ID: 9424 Updated by: ftouanen@yahoo.fr Reported By: ncosta@seist.com Status: Bogus Bug Type: HTTP related Operating System: Windows 2000 PHP Version: 4.0.4pl1 New Comment: Bugs are existing when using setcookie PHP function under WINDOWS NT or 2K, or with IE5. Previous Comments: ------------------------------------------------------------------------ [2001-02-26 04:17:56] sniper@php.net Read the manual page for setcookie: http://www.php.net/setcookie and ask further support questions on php-general@lists.php.net --Jani ------------------------------------------------------------------------ [2001-02-23 11:25:54] ncosta@seist.com I try to use this function to prevent that the same visitor vote for more than one time in a hour but 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 he 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9424&edit=1

« previous php.bugs (#5570) next »