Bug #8912 Updated: variable not passed to next page
| From: | jmoore@php.net | Date: | Tue, 22 May 2001 19:05:02 +0000 |
| Subject: | Bug #8912 Updated: variable not passed to next page | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56321@lists.php.net to get a copy of this message | ||
ID: 8912
Updated by: jmoore
Reported By: matthias.krehl@key-work.de
Old-Status: Open
Status: Bogus
Bug Type: *Session related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Browser probably doesnt send correct cookie as it works on the second page.
- James
Previous Comments:
---------------------------------------------------------------------------
[2001-02-02 05:39:34] matthias.krehl@key-work.de
Reloading the (second) page 'solves' the problem. $HTTP_SESSION_VARS['ident'] is
then available. I.e., there seems to be reaaly something wrong, isn't it?
Matthias
---------------------------------------------------------------------------
[2001-01-25 12:55:43] matthias.krehl@key-work.de
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8912&edit=2