$autentificado = $_SESSION['autentificado']; if ($autentificado !="SI") { header("Location: index.php"); exit(); }