Re: setcookie don't work well...

From: Date: Mon, 26 Feb 2001 13:33:59 +0000
Subject: Re: setcookie don't work well...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41688@lists.php.net to get a copy of this message
you have to set to path and the domain name too... setcookie('vote', '1', $time, '/', '.someite.com'); -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 lee@mediawaveonline.com ""Nuno Costa"" <ncosta@seist.com> wrote in message news:000e01c09ff0$feee9570$1e01a8c0@ncosta... 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.

« previous php.general (#41688) next »