diff options
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"); +?> |