$_SESSION not populated with register_globals=On
| From: | Sebastian Bergmann | Date: | Fri, 23 Nov 2001 07:41:56 +0000 |
| Subject: | $_SESSION not populated with register_globals=On | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71446@lists.php.net to get a copy of this message | ||
Environment: PHP 4.2.0-dev (current HEAD from CVS) as CGI, Win32.
This works
<?php
ini_set('register_globals', 0);
session_register('foo');
echo ++$_SESSION['foo'];
?>
while this does not
<?php
ini_set('register_globals', 1);
session_register('foo');
echo ++$_SESSION['foo'];
?>
Why is $_SESSION not populated when register_globals is on?
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/