pics/controllers/Logout.php
Aaron van Geffen ab0e4efbcb Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
2017-11-09 17:00:22 +01:00

21 lines
487 B
PHP

<?php
/*****************************************************************************
* Logout.php
* Contains the controller for logging the user out.
*
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
*****************************************************************************/
class Logout extends HTMLController
{
public function __construct()
{
// Clear the entire sesssion.
$_SESSION = [];
// Back to the frontpage you go.
header('Location: ' . BASEURL);
exit;
}
}