Update 2 files

- /html/login.php
- /html/logout.php
This commit is contained in:
Jan BELLON 2024-03-07 01:34:37 +00:00
parent d3a589e103
commit 6ba72e3f51
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,8 @@ if(isset($_POST['username']) && isset($_POST['password'])) {
$_SESSION['email'] = $resultat[0]['email'];
$_SESSION['display_name'] = $resultat[0]['display_name'];
$_SESSION['userid'] = $resultat[0]['ID'];
header("Location: index.php");
exit();
}
}
}

6
html/logout.php Normal file
View File

@ -0,0 +1,6 @@
<?php
session_start();
session_destroy();
header("Location: index.php");
exit();
?>