php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.

[sess_15e149f29b26e2995c2474bbd083589e]:
!my_session_variable|


[index.php]:
<?php

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

[test.php]:
<?
session_start();

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

phpinfo();

?>

Patches

Pull Requests

History

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: Thu Dec 26 17:01:31 2024 UTC