RE: [PHP] Setting Cookies
| From: | Ford, Mike [LSS] | Date: | Tue, 11 Jun 2002 14:36:35 +0000 |
| Subject: | RE: [PHP] Setting Cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101556@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Scott 'INtense!' Reismanis [mailto:areisman@bigpond.net.au]
> Sent: 08 June 2002 04:52
>
> 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?
Yes.
(There are several bug reports at http://bugs.php.net/ about this
-- I *think* it's been fixed in the development version of PHP 4.3)
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211