Cookies, php 4.2.0 & Apache 2.0.35
| From: | Andy Brown | Date: | Wed, 08 May 2002 08:50:24 +0000 |
| Subject: | Cookies, php 4.2.0 & Apache 2.0.35 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96547@lists.php.net to get a copy of this message | ||
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!!
Anyone got any ideas, or suggestions on how to get this working quickly
:)
Regards,
Andy
andy@linuxnetworking.co.uk