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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2023 The PHP Group
All rights reserved.
Last updated: Mon Feb 06 13:03:40 2023 UTC