summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-08-19 10:57:23 +0500
committerilotterytea <iltsu@alright.party>2025-08-19 10:57:23 +0500
commit8174ad756b53bc0bc5ea9d7fa6c511ad1d2cef0f (patch)
treebd59ff9ea309093ef4c1209d9d7a5843e1d35281
parent3a71ab0d6d5b9e2ecae630a93a1e862906745384 (diff)
feat: log out from account
-rw-r--r--account/logout.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/account/logout.php b/account/logout.php
new file mode 100644
index 0000000..dfe0952
--- /dev/null
+++ b/account/logout.php
@@ -0,0 +1,10 @@
+<?php
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/utils.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/config.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/alert.php';
+
+session_destroy();
+
+header('Location: /');
+echo 'Logged out!';