Fatal error: Session variable IsAdminLoggedIn is not globally defined

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fendi Baba

    Fatal error: Session variable IsAdminLoggedIn is not globally defined

    Hello everyone

    I am trying to implement a security control in my application and I
    use the following code to determine if the Administrator is logged in.

    session_start ();

    // Use $HTTP_SESSION_V ARS with PHP 4.0.6 or less
    if (!isset($_SESSI ON['IsAdminLoggedI n']) ||
    $_SESSION['IsAdminLoggedI n'] != 1) {
    header("Locatio n: index_login.php ?ALE=0");
    }
    ?>


    I realised that my PHP server is newer - version 4.3.4 (Zend: 1.3.0).
    and I get the above error after I logged into the application. What
    did I do wrong? WHat can I change to make the above code work?
Working...