problems with cookies and PHP

From: Date: Thu, 13 Feb 2003 18:57:15 +0000
Subject: problems with cookies and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-135496@lists.php.net to get a copy of this message
This is driving me nuts... it won't set or reset the cookie no errors no nothing... I've learned quite a bit about cookies and PHP thus far but something important must still be eluding me. I've read the manual entry on it, is there any other tutorial out there that's better? what am I doing wrong? <?php if(!isset($_COOKIE['userInfo'])){ setcookie("userInfo","temp",0,"/","faxonautoliterature.com",0); print "set temp"; }else{ if($_COOKIE['userInfo']=="temp"){ setcookie("userInfo","userID",time()+60*60*24*30,"/","faxonautoliterature..com",0); print "set info"; } } ?>

« previous php.general (#135496) next »