Re: Setting Cookies

From: Date: Mon, 10 Jun 2002 11:17:58 +0000
Subject: Re: Setting Cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101379@lists.php.net to get a copy of this message
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.cooki es Use Superglobals...you will see what I mean. Also, Apache 2.0 is not recommended as of yet for PHP commercial development http://www.apacheweek.com/issues/02-06-07 Regards, Craig "Scott 'Intense!' Reismanis" <areisman@bigpond.net.au> wrote in message news:000001c20e9f$c8720620$850d2dcb@intense... > 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 (#101379) next »