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" <[EMAIL PROTECTED]> wrote in message 000001c20e9f$c8720620$850d2dcb@intense">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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php