Forum Moderators: coopster
I have Login.php,Home.php and AccInfo.php
all is working fine. but when i access accinfo.php, by login as an emp then it display
"admin is logged in" in spite of "emp is logged in"
if i destroy the session then i can not access the home.php as session is expired!
Plz help! here is the code
<?php
session_start();
if(isset($_SESSION['adminloginid']))
{ echo 'admin is logged in';
}
else if(isset($_SESSION['emploginid']))
{ echo 'employee is logged in';
}
else
{ echo 'session expired';
}
?>