By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

Fatal error: Session variable IsAdminLoggedIn is not globally defined

P: n/a
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?
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.