note 22720 deleted from reserved.variables by philip
| From: | philip@php.net | Date: | Mon, 09 Dec 2002 01:11:41 +0000 |
| Subject: | note 22720 deleted from reserved.variables by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40551@lists.php.net to get a copy of this message | ||
In response to the previous post:
If you received a POST var with the same name as a SESSION var, what would happen is quite simple:
If register_globals is off, then, as before, you would have $_POST['var'] and
$_SESSION['var'].
If register_globals is on, then you'd still have both $_POST['var'] and
$_SESSION['var'], and you'd also have $var. Which value $var has (post or session)
depends on variables_order, which defaults to EGPCS, in which case $var would be equal to
$_SESSION['var'].