diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-07 11:49:12 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-07 11:49:12 +0300 |
commit | fd4cb27121122d146b8cc3d55ad5aa9312c2cbe6 (patch) | |
tree | 9a6b58cabe2320d8b385196a68ab973803199eac /user/logout.php | |
download | bugtracker-fd4cb27121122d146b8cc3d55ad5aa9312c2cbe6.tar.xz |
Initial commit
Diffstat (limited to 'user/logout.php')
-rw-r--r-- | user/logout.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/user/logout.php b/user/logout.php new file mode 100644 index 0000000..26bbfa0 --- /dev/null +++ b/user/logout.php @@ -0,0 +1,13 @@ +<?php +require '../config.php'; +require_once(TEMPLATES_PATH . "/header.php"); + +session_start(); +unset($_SESSION['user_name']); +unset($_SESSION['user_id']); + +echo 'Session cleared'; +header("Refresh: 2; URL=$_SERVER[HTTP_REFERER]"); + +require_once(TEMPLATES_PATH . "/footer.php"); +?> |