|  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:
Solve the problem:
44 - 7 = ?
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'


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: Mon Mar 20 22:03:51 2023 UTC