From 6ba72e3f519da7adb0d12c3e8e6bd459c13c23aa Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 01:34:37 +0000 Subject: [PATCH] Update 2 files - /html/login.php - /html/logout.php --- html/login.php | 2 ++ html/logout.php | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 html/logout.php diff --git a/html/login.php b/html/login.php index a4cf1fe3..f10640c0 100644 --- a/html/login.php +++ b/html/login.php @@ -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(); } } } diff --git a/html/logout.php b/html/logout.php new file mode 100644 index 00000000..eb269c54 --- /dev/null +++ b/html/logout.php @@ -0,0 +1,6 @@ + \ No newline at end of file