BARRAUX Arthur
3 years ago
7 changed files with 22 additions and 11 deletions
@ -1,10 +1,10 @@ |
|||
<?php |
|||
session_start(); |
|||
if (!isset($_SESSION['login']) || !isset($_SESSION['pwd'])) { |
|||
print_r($_SESSION); |
|||
header('location: ../index.php'); |
|||
if (isset($_SESSION['login']) && isset($_SESSION['pwd'])) { |
|||
echo 'vous etes autentifié'; |
|||
} |
|||
else{ |
|||
echo 'voous etes autentifié'; |
|||
header('location: ../index.php'); |
|||
|
|||
} |
|||
?> |
Loading…
Reference in new issue