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