/** * Updates the user information in the session. * * @param UserRow $user User object to store in the session * * @return void */ public function updateSession($user) { $this->currentUser = $user; $this->session->userId = $user->id; $this->cookieManager->clear('loggedOut'); }
/** * Updates the user information in the session. * * @param UserRow $user User object to store in the session * * @return void */ public function updateSession($user) { $this->currentUser = $user; if ($this->inPrivacyMode()) { $this->session->userDetails = $user->toArray(); } else { $this->session->userId = $user->id; } $this->cookieManager->clear('loggedOut'); }