alert('You are not allowed to enter this site, ".$_SESSION['role']." ".$_SESSION['last_name'].". You will be logged out by the system.');"; echo "window.location.href='logout.php';"; } ?>