PHP and Cookies

From: Date: Fri, 04 Apr 2003 02:43:24 +0000
Subject: PHP and Cookies
Groups: php.general 
Request: Send a blank email to php-general+get-142237@lists.php.net to get a copy of this message
Hi all, I have a problem with php and cookies. I use the following line of code to set a cookie to expire in one year: setcookie('gsp_email',$_POST['requiredsubEmail'],time()*60*60*24*365,'/','',0); The idea is that the cookie will sit on the client for a year, so that a visitor only has to submit their email address once. However, when I close up all browser windows, then reload the browser (I'm using IE 6), the cookie doesn't seem to 'stick'.. I'm once again asked for my email address even though I already entered it and set the cookie. Any ideas? Scotty

« previous php.general (#142237) next »