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"; } } ?>