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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 8 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC