aboutsummaryrefslogtreecommitdiffstats
path: root/admin/logout.php
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /admin/logout.php
downloadwww-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz
www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip
import live www.sillylaird.ca webrootHEADmain
Diffstat (limited to 'admin/logout.php')
-rw-r--r--admin/logout.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/logout.php b/admin/logout.php
new file mode 100644
index 0000000..28aa8b3
--- /dev/null
+++ b/admin/logout.php
@@ -0,0 +1,5 @@
+<?php
+require_once __DIR__ . '/../partials/session.php';
+session_destroy();
+header('Location: /admin/login.php');
+exit;