PHP_SMART_HOME_V3/app/views/Logout.php

12 lines
186 B
PHP

<?php
class Logout extends Template
{
function __construct()
{
$userManager = new UserManager ();
$userManager->logout();
header('Location: ' . BASEURL . 'login');
die();
}
}