/** * @param \TYPO3\Sso\Domain\Model\FrontendUser $frontendUser * * @throws EmptyUserException * @return void */ public function registerSession($frontendUser) { if (!$frontendUser) { throw new EmptyUserException('No user given that can be dropped into the session.', 1329749957); } $row = $this->db->exec_SELECTgetSingleRow('*', 'fe_users', 'uid = ' . $frontendUser->getUid()); $this->getFeUser()->createUserSession($row); $this->getFeUser()->setSessionCookie(); }