PHP 4.0 Bug #8912: variable not passed to next page
| From: | matthias dot krehl at key-work dot de | Date: | Thu, 25 Jan 2001 17:55:43 +0000 |
| Subject: | PHP 4.0 Bug #8912: variable not passed to next page | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45000@lists.php.net to get a copy of this message | ||
From: matthias.krehl@key-work.de
Operating system: Windows 2000 Server
PHP version: 4.0.4pl1
PHP Bug Type: *Session related
Bug description: variable not passed to next page
When using Cookies for session management everything works fine (the authentication part) but
passing the values of the session variables. In the example below the existence of
'$ident' is verified. But no chance to get its value: no 'echo' prints out
anything!
-- example -----------------------------------
session_start();
if (!session_is_registered('ident')) {
header ("Location: ../index.php");
}
// trying to retrieve $ident which is obviously known to the session
echo $ident;
echo $HTTP_COOKIE_VARS['ident'];
echo $HTTP_SESSION_VARS['ident'];
// just to be sure there is no interference with form data
echo $HTTP_POST_VARS['ident'];
echo $HTTP_GET_VARS['ident'];
----------------------------------------------
bye Matthias
--
Edit Bug report at: http://bugs.php.net/?id=8912&edit=1