Re: Sessions and register_globals
| From: | Sebastian Bergmann | Date: | Fri, 05 Oct 2001 16:12:16 +0000 |
| Subject: | Re: Sessions and register_globals | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67355@lists.php.net to get a copy of this message | ||
Sebastian Bergmann wrote:
> Rasmus Lerdorf wrote:
>> This is expected behaviour as far as I am concerned.
>
> Sascha just enlightened me on #php.de.
Something I still don't understand:
<?php
session_register("count");
$HTTP_SESSION_VARS["count"]++;
echo $HTTP_SESSION_VARS["count"];
?>
The above script works, ie. outputs an increasing number during
subsequent requests, when register_globals is turned off, but not,
ie. showing always '1', when it is turned on.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/