Presently I'm using an extended class that uses the superglobal $_SESSIOn array.
According to the documentation:
"As of PHP 4.1.0, $SESSION is available as global variable just like $POST, $GET, $REQUEST and so on. Not like $HTTP_SESSION_VARS, $SESSION is always global. Therefore, global should not be used for $SESSION."
However, without using "global $SESSION" in the constructor function of the extended class, PHP issues a notice stating that $SESSION is not defined. The code I'm using is:
class Admin extends Member {
function Admin() {
//global $SESSION;
if($SESSION['member_privileges'] != "Administrator") {
$this->bad_login($_SESSION['member_login'], 2);
}
}
}
Interestingly enough, this is not the same behavior exhibited by the parent class (which works as expected).
Any insight as to why this superglobal isn't so super?