RE: [PHP] Cookies, php 4.2.0 & Apache 2.0.35
| From: | Ford, Mike [LSS] | Date: | Wed, 08 May 2002 10:09:33 +0000 |
| Subject: | RE: [PHP] Cookies, php 4.2.0 & Apache 2.0.35 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96558@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andy Brown [mailto:andy.brown@interv8.co.uk]
> Sent: 08 May 2002 09:50
>
> Hi,
> I'm wondering if anybody else can replicate, or know of this problem
> that I've found since I upgraded apache and also php (I wanted to
> upgrade apache, and found that the PHP release isn't recommended for
> production use yet, so not too happy!)
>
> Its with setting multiple cookies in one php file, I pass variables to
> the setcookie.php page, and in that page I have:
> <?php
> setcookie ("second", "$second",time()+553600, "/",
> ".thedomain.com");
> setcookie ("first", "$first",time()+553600, "/",
> ".thedomain.com");
> setcookie ("email", "$email",time()+553600, "/",
> ".thedomain.com");
> ?>
> <html>
> <body>Set cookies</body></html>
>
> BUT whenever I try to retrieve the cookie values, only the last one
> (email) has been set. And yes, I'm using the new way of referencing
> cookies, so I'm very confused!!
Yep, known problem with PHP 4.2.0 and Apache 2.0.35. See bug report at http://bugs.php.net/bug.php?id=16626. This
isn't reported as resolved yet, so may not be fixed even with Apache 2.0.36 and upcoming PHP
4.2.1.
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