|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5548 session files does not contain value of variable, only the variable name
Submitted: 2000-07-13 04:36 UTC Modified: 2000-07-13 10:13 UTC
From: japj at darius dot demon dot nl Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (13/07/2000) OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: japj at darius dot demon dot nl
New email:
PHP Version: OS:


 [2000-07-13 04:36 UTC] japj at darius dot demon dot nl
I am using Apache 1.3.12 and apache module php4.

Using index.php that registeres a session variable and test.php that displays this variable, the session file does not contain the value of the variable, only the variable name.



$my_session_variable =  "some value";
session_register( "my_session_variable");
echo "my session variable '" . $my_session_variable . "'";
<a href="test.php">test</A>


echo "my session variable '" . $my_session_variable . "'";




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-13 09:14 UTC] andrei at cvs dot php dot net
Do you have register_globals turned on?
 [2000-07-13 10:13 UTC] japj at darius dot demon dot nl
ok, I forgot to set register_globals to "On" in the php.ini, but I'm not sure if this is mentioned in the readme/documentation

php.ini comment about register_globals:
; Whether or not to register the EGPCS variables as global
; variables.  You may want to turn this off if you don't want
; to clutter your scripts' global scope with user data.  This makes
; most sense when coupled with track_vars - in which case you can
; access all of the GPC variables through the $HTTP_*_VARS[],
; variables.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 09:01:29 2024 UTC