SakuraPanel/pages/logout.php

12 lines
203 B
PHP
Raw Normal View History

2020-01-18 05:51:45 +08:00
<?php
namespace SakuraPanel;
use SakuraPanel;
SakuraPanel\Utils::checkCsrf();
unset($_SESSION['user']);
unset($_SESSION['mail']);
unset($_SESSION['token']);
?>
<script>location='?page=login';</script>