Пример #1
0
 /**
  * logout the user from the session
  */
 public function logout()
 {
     $this->manager->emit('\\OC\\User', 'logout');
     $user = $this->getUser();
     if (!is_null($user)) {
         try {
             $this->tokenProvider->invalidateToken($this->session->getId());
         } catch (SessionNotAvailableException $ex) {
         }
     }
     $this->setUser(null);
     $this->setLoginName(null);
     $this->unsetMagicInCookie();
     $this->session->clear();
 }
Пример #2
0
 /**
  * Reset and recreate the session
  */
 public function clear()
 {
     $this->sessionValues = [];
     $this->isModified = true;
     $this->session->clear();
 }
Пример #3
0
 /**
  * Reset and recreate the session
  */
 public function clear()
 {
     $this->session->clear();
 }