|  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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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'


Add a Patch

Pull Requests

Add a Pull Request


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



$HTTP_SESSION_VARS['my_var'] = blah;



PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 22:03:42 2023 UTC