summaryrefslogtreecommitdiffstats
path: root/examples/server/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/logout.php')
-rw-r--r--examples/server/logout.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/server/logout.php b/examples/server/logout.php
new file mode 100644
index 0000000..1ff893c
--- /dev/null
+++ b/examples/server/logout.php
@@ -0,0 +1,12 @@
+<?php
+
+require_once "common.php";
+
+// Set up the current session
+init();
+
+setLoggedInUser(null);
+unset($_SESSION['request']);
+redirect($server_url);
+
+?> \ No newline at end of file