php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13077 $HTTP_SESSION_VARS not set with first call to session_start()
Submitted: 2001-08-31 06:31 UTC Modified: 2001-08-31 14:13 UTC
From: antoine at ws-interactive dot fr Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Linux 2.2.16-22smp
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: antoine at ws-interactive dot fr
New email:
PHP Version: OS:

 

 [2001-08-31 06:31 UTC] antoine at ws-interactive dot fr
My script calls session_start(), registers a session vars with session_register().
After that, the var isn't set in $HTTP_SESSION_VARS.
If I do a session_write_close() immediatly followed by a session_start() after the registering, the var is set in $HTTP_SESSION_VARS.

My configure line : 
 './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-trans-sid' '--enable-wddx' '--with-gettext' '--with-mysql=/usr/local/mysql'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-31 14:13 UTC] sniper@php.net
in php.ini: register_globals=off

<?php

session_start();

$HTTP_SESSION_VARS['my_var'] = blah;

?>


--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC