2016-09-01 23:13:23 +02:00
|
|
|
<?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.
|
2023-11-20 20:59:35 +01:00
|
|
|
Session::clear();
|
2016-09-01 23:13:23 +02:00
|
|
|
|
|
|
|
// Back to the frontpage you go.
|
|
|
|
header('Location: ' . BASEURL);
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|