itisnot_me 0 Posting Whiz in Training

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

the problem is i am not using a register_session

to set it

if($count==1){
$_SESSION['login_email'] = $myemail; // Set it so the user is logged in!
$_SESSION['admin'] = $admin;
$_SESSION['company_id'] = $company_id;
header ("Location:index.php"); 
}
else {
	echo '<div style="color:#AE0000;">Wrong email or Password</div><br /> <a href="#" onClick="history.go(-1);return true;">Try Again</a>';
}

check it

session_start(); // NEVER forget this!
if(!isset($_SESSION['login_email']) && !isset($_SESSION['company_id']) && !isset($_SESSION['admin']))
{
header("location:login.php");
}

$login_email = $_SESSION['login_email'];
$company_id = $_SESSION['company_id'];
$admin = $_SESSION['admin'];