diff options
Diffstat (limited to 'public/admin/logout.php')
-rw-r--r-- | public/admin/logout.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/public/admin/logout.php b/public/admin/logout.php new file mode 100644 index 0000000..25a3e4c --- /dev/null +++ b/public/admin/logout.php @@ -0,0 +1,10 @@ +<?php + +require_once __DIR__ . '/../../app/app.php'; + +setcookie('auth', '', time() - 3600); +session_destroy(); +session_regenerate_id(); + +header('Location: login.php'); +die(); |