Pls I need help on this validation script. Even after logout and without login, I can access the assigned webpage. What might be wrong??
<?php
//Start session
session_start();
//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['login']) xor (trim($_SESSION['login']) == '')) {
header("location: login.php");
exit();
}
?>