php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10387 session_register doesn't populate $HTTP_SESSION_VARS
Submitted: 2001-04-18 18:56 UTC Modified: 2001-06-12 04:37 UTC
From: eoghain at liquidcode dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4pl1 OS: Solaris 8.0
Private report: No CVE-ID: None
 [2001-04-18 18:56 UTC] eoghain at liquidcode dot net
I don't know if this is a bug or that session_register() just doesn't work the way I expect.  In a single script if I use session_register() then try to access $HTTP_SESSION_VARS["var"] I get a null entry.  I'd expect that as soon as I register a variable that I should be able to find it in the $HTTP_SESSION_VARS.

<?php
session_start()
$test = "this is a test";
session_register("test");
print $HTTP_SESSION_VARS["test"];
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 21:09 UTC] sbergmann@php.net
Please give the latest CVS a try. Andrei Zmievski committed a patch that should fix this problem.
 [2001-06-12 04:37 UTC] sniper@php.net
No feedback and this is fixed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC