Hi, how do i add and if ($_SESSION['username']) to the code below so that it only lets users in if they have the correct area session registered and have a username session registered aswell. I keep getting errors
Thanks for any help
Bne
Thanks for any help
Bne
Code:
$area_check="area300";
if ($_SESSION['area']!=$area_check){
header ("Location: login.php");
exit();
} else {}