This commit is contained in:
root committed 2022-10-11 07:44:28 +07:00
1 parent ab642d9c51
commit 9abad2f998
13 files changed
+57 -41

No files matched your search

Executable
+9
View File
@@ -0,0 +1,9 @@
<?php // INCLUDE: Redirect to login.php if not authorized
session_start();
if(isset($_POST['logoff'])){ // Logout attempt: logout
unset($_SESSION['user']);
}
if(!isset($_SESSION['user'])){ // Not logged in: login
header('Location: login.php');
}
?>