<?php
class PageLogout extends Page
{
public function __construct($row)
{
global $sDB, $sRequest, $sUser;
parent::__construct($row);
$this->handleLogout();
$this->redirect();
}
public function getQuestion()
{
return $this->question;
}
public function handleLogout()
{
global $sSession;
$sSession->setVal('userId', 0);
$sSession->serialize();
}
public function redirect()
{
global $sTemplate;
header("Location: ".$sTemplate->getRoot());
exit;
}
}
?>