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
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: eoghain at liquidcode dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC