#33322 [Bgs]: I can´t set a cookie
ID: 33322
User updated by: j-pieper at web dot de
Reported By: j-pieper at web dot de
Status: Bogus
Bug Type: *General Issues
Operating System: Fedora Project C3
PHP Version: 5.0.4
New Comment:
Yeah I read it and I tested a few ways to set a cookie. My Browser
(Mozilla Firefox 1.0.4) accepts Cookies and i reloaded the page after
setting the Cookie but a cookie won´t be set.
Previous Comments:
------------------------------------------------------------------------
[2005-06-13 15:43:54] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Reload the page after setting the cookie and accept
cookies in your browser.
------------------------------------------------------------------------
[2005-06-13 15:37:12] j-pieper at web dot de
Description:
------------
I can´t set a cookie in my application. I created a small file with
only setting a cookie and controlling the content of $_COOKIE but there
is nothing. I also get no error-message.
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
setcookie('foo', 'bar', time()+86400);
var_dump($_COOKIE);
?>
Expected result:
----------------
Somthing like this:
array(1) {
["foo"]=> string(3) "bar"
}
Actual result:
--------------
array(0) { }
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33322&edit=1
Thread (6 messages)