Verificação de login(redirecionamento)
Galera, estou com o seguinte problema:
tenho 4 redirecionamento, até a 2 funciona normal, mas a partir da 3 redireciona para o menu.php novamente.
alguem tem uma dica?
<?php
session_start();
if(!isset($_SESSION['usuario']) /*|| ($_SESSION['nivel']) */){
session_destroy();
header("location:menu.php");
exit;
}
if($_SESSION['nivel'] == '1'){
header("location:checklist_gabriel/index.php");
}
if($_SESSION['nivel'] == '2'){
header("location:checklist/index.php");
}
if($_SESSION['nivel'] == '3'){
header("location:conferencia/controle/");
}
if($_SESSION['nivel'] == '4'){
header("location:controle/index.php");
}
?>Discussão (5)
Carregando comentários...