#41982 [Opn->Fbk]: cookie fails to set
| From: | jani@php.net | Date: | Thu, 12 Jul 2007 20:36:36 +0000 |
| Subject: | #41982 [Opn->Fbk]: cookie fails to set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114991@lists.php.net to get a copy of this message | ||
ID: 41982
Updated by: jani@php.net
Reported By: alex__rider at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: WinXP
PHP Version: 5.2.3
New Comment:
Do you mean it never get set even if you reload the page?
Previous Comments:
------------------------------------------------------------------------
[2007-07-12 20:30:53] alex__rider at hotmail dot com
Description:
------------
When trying to set a cookie in PHP under Apache2 / winXP, the cookie is
not set.
Reproduce code:
---------------
<?php
setcookie('test','some text', time()+360);
echo 'cookie set<br>';
if (isset($_COOKIE['test']))
{
echo 'cookie retrieved';
}
else
{
echo 'cookie failed';
}
?>
Expected result:
----------------
The out put should read 'cookie retrieved' if the cookie was set
Actual result:
--------------
the output I get is the failed message
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41982&edit=1