Fatal error: Session variable IsAdminLoggedIn is not globally defined

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['IsAdminLoggedIn']) ||
$_SESSION['IsAdminLoggedIn'] != 1) {
    header("Location: 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?

Site Timeline