SakuraPanel/pages/logout.php
2020-01-18 05:51:45 +08:00

12 lines
203 B
PHP
Executable File

<?php
namespace SakuraPanel;
use SakuraPanel;
SakuraPanel\Utils::checkCsrf();
unset($_SESSION['user']);
unset($_SESSION['mail']);
unset($_SESSION['token']);
?>
<script>location='?page=login';</script>