aboutsummaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-03-15 04:04:16 +0100
committerarf20 <aruizfernandez05@gmail.com>2024-03-15 04:04:16 +0100
commit8bca2f7e966883cd1e73bf8df384a0aa21a271ba (patch)
tree2393a6793fc7d5f2b81ec162efc39ba829c4cee8 /logout.php
downloadarfnet2-cstims-8bca2f7e966883cd1e73bf8df384a0aa21a271ba.tar.gz
arfnet2-cstims-8bca2f7e966883cd1e73bf8df384a0aa21a271ba.zip
Initial commit
Diffstat (limited to 'logout.php')
-rwxr-xr-xlogout.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/logout.php b/logout.php
new file mode 100755
index 0000000..d2ae1dd
--- /dev/null
+++ b/logout.php
@@ -0,0 +1,14 @@
+<?php
+// Initialize the session
+session_start();
+
+// Unset all of the session variables
+$_SESSION = array();
+
+// Destroy the session.
+session_destroy();
+
+// Redirect to login page
+header("location: login.php");
+exit;
+?> \ No newline at end of file