note 6002 deleted from function.session-register by sniper
| From: | sniper@php.net | Date: | Thu, 31 Oct 2002 00:45:00 +0000 |
| Subject: | note 6002 deleted from function.session-register by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38778@lists.php.net to get a copy of this message | ||
Re: changing registered variables.
registered session vars cannot be changed by the user. I.e. typing in
http://www.money.com/securestuff/index.php?valid_user=true
will not cause the "$valid_user" var, which we have previously registered,
to be overwritten with the value "true".
You can change the value of registered vars in your script. I.e. coding
if ($thisguyisvalid) {
$valid_user = 'true';
}
will work. The $valid_user var will continue to be set at true for the
session, or until you explicitly change it again.