What would be the best practices for maneuvering the following PHP code?
if(!isset($_SESSION['email'], $_SESSION['senha'], $_SESSION['nivel'], $logado)){
header("location: index.php");
}
And of course when I kill the session it goes into an infinite loop for the simple fact that it does not exist. But how do I stop it from looping?
When I run the code the following screen appears: