session verif

This commit is contained in:
thaaoblues 2023-11-11 20:37:11 +01:00
parent 50a03ab7cf
commit b54bb08826
2 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,9 @@ if(isset($_SESSION["utilisateur_authentifie"])){
session_abort();
echo(json_encode(array("status"=> "3","msg"=>"Session expirée, veuillez vous reconnecter.")));
}
}else{
echo(json_encode(array("status"=> "0","msg"=> "Utilisateur non connecté.")));
exit;
}
?>

View file

@ -1,4 +1,11 @@
<?php
session_start();
include("session_verif.php");
// Include your database connection code here
include("test_creds.php");