note 17453 added to function.session-is-registered
| From: | david at somplace_on_earth dot chek dot com | Date: | Mon, 10 Dec 2001 05:31:17 +0000 |
| Subject: | note 17453 added to function.session-is-registered | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22421@lists.php.net to get a copy of this message | ||
people should be using this function for checking session variables instead of a simple:
if(!$access_allowed), in this case, if register_globals is turned on.
people can change the $access_allowed=1 from the url string. dunno how many times i seen people
doing this. bad practice.
use is(!session_is_registered("access_allowed")) instead.
--
http://www.php.net/manual/en/function.session-is-registered.php
http://master.php.net/manage/user-notes.php?action=edit+17453
http://master.php.net/manage/user-notes.php?action=delete+17453
http://master.php.net/manage/user-notes.php?action=reject+17453