forked from mougnibas/archinsa
session verif
This commit is contained in:
parent
50a03ab7cf
commit
b54bb08826
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,4 +1,11 @@
|
|||
<?php
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
include("session_verif.php");
|
||||
|
||||
|
||||
// Include your database connection code here
|
||||
include("test_creds.php");
|
||||
|
||||
|
|
Loading…
Reference in a new issue