public function logoutAction() { session_destroy(); unset($_SESSION['user']); $this->redirect('/'); }