Setting Cookies

From: Date: Sat, 08 Jun 2002 03:51:34 +0000
Subject: Setting Cookies
Groups: php.general 
Request: Send a blank email to php-general+get-101107@lists.php.net to get a copy of this message
Hey all, I am having some troubles setting cookies at the moment wondering if anyone knows the solution. Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie("username", $HTTP_POST_VARS['username'], time()+31536000); setcookie("password", $HTTP_POST_VARS['password'], time()+31536000); only the cookie that was called last, i.e. 'password' will be set. I only started noticing this problem since I installed php4.2 and apache2.0, is that the cause? Has anyone shared a similar experience, and if so is there a fix? Thanks for your time as always. Regards, Scott

« previous php.general (#101107) next »