'logout.html', 'JS' => 'user_main.js', ]; if ($this->isPostRequest()) { $params = $this->f3->get('POST'); $errorCode = \Utils\Access::CSRFTokenValid($params, $this->f3); if (!$errorCode) { $this->f3->clear('SESSION'); session_commit(); $this->f3->reroute('/'); } $pageParams['ERROR_CODE'] = $errorCode; } return parent::applyPageParams($pageParams); } }