Bug #14255: setcookie bug (Cookie is destroyed/Inaccessible)
From: kris dot wilkinson at titancs dot com Date: Tue, 27 Nov 2001 17:43:15 +0000 Subject: Bug #14255: setcookie bug (Cookie is destroyed/Inaccessible) Groups: php.dev Request: Send a blank email to php-dev+get-71831@lists.php.net to get a copy of this message
From: kris.wilkinson@titancs.com
Operating system: Debian 2.2.19
PHP version: 4.0.6
PHP Bug Type: HTTP related
Bug description: setcookie bug (Cookie is destroyed/Inaccessible)
The problem is simple, in the older versions of php, you could set a cookie
and have it available for your specified amount of time from any browser
window open.
The line was as follows :
setcookie ("myCookie","Blah","time()+7201");
The cookie should be set for just over 2 hours.
In 4.0.6, If you set the cookie, the time you set is never actually used,
and the cookie is destroyed immediately after you close the browser window.
Another downside, you cannot access this cookie from another window even if
the original window is open. this sounds like an exclusive window session
is linked to that cookie, and once the uplink is dropped, so is the
cookie.
To access the cookie, i've been using :
$mycookie = $HTTP_COOKIE_VARS[myCookie];
it will show up in the original window, but not in others.
at all!
what's up?! :)
--
Edit bug report at: http://bugs.php.net/?id=14255&edit=1
Thread (20 messages)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
- RE: Bug #14255 Updated: setcookie bug (Cookie is destroyed/Inaccessible)
| « previous | php.dev (#71831) | next » |
|---|