Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start()
| From: | sniper@php.net | Date: | Fri, 31 Aug 2001 18:13:35 +0000 |
| Subject: | Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64858@lists.php.net to get a copy of this message | ||
ID: 13077
Updated by: sniper
Reported By: antoine@ws-interactive.fr
Old Status: Open
Status: Closed
Bug Type: Session related
Operating System: Linux 2.2.16-22smp
PHP Version: 4.0.6
New Comment:
in php.ini: register_globals=off
<?php
session_start();
$HTTP_SESSION_VARS['my_var'] = blah;
?>
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-08-31 06:31:03] antoine@ws-interactive.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'
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13077&edit=1