Exemple #1
0
 /**
  * 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');
 }
Exemple #2
0
 /**
  * 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');
 }