diff options
Diffstat (limited to 'logout.php')
| -rw-r--r-- | logout.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..5fec951 --- /dev/null +++ b/logout.php @@ -0,0 +1,18 @@ +<?php +include "setup.php"; +my_session_start(); +session_unset(); +$params = session_get_cookie_params(); +setcookie( + session_name(), + '', + time() - 42000, + $params["path"], + $params["domain"], + $params["secure"], + $params["httponly"] +); +session_destroy(); +header("Location: index.php"); +exit; +?>
\ No newline at end of file |
