#33322 [NEW]: I can´t set a cookie
| From: | j-pieper at web dot de | Date: | Mon, 13 Jun 2005 13:37:13 +0000 |
| Subject: | #33322 [NEW]: I can´t set a cookie | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-80237@lists.php.net to get a copy of this message | ||
From: j-pieper at web dot de
Operating system: Fedora Project C3
PHP version: 5.0.4
PHP Bug Type: *General Issues
Bug description: I can´t set a cookie
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 bug report at http://bugs.php.net/?id=33322&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33322&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33322&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33322&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33322&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33322&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33322&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33322&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33322&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33322&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33322&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33322&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33322&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33322&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33322&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33322&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33322&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33322&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33322&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33322&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33322&r=mysqlcfg