original_string: public function clear()
      {
          $session = $this->getSessionContainer();
          if (!$session->isSwitchedUser) {
              return false;
          }
  
          $oldSession = unserialize($session->session);
          $ref        = $session->ref;
          $_SESSION = $oldSession;
  
          return $ref ? $ref : true;
      }
code: public function clear()
      {
          $session = $this->getSessionContainer();
          if (!$session->isSwitchedUser) {
              return false;
          }
  
          $oldSession = unserialize($session->session);
          $ref        = $session->ref;
          $_SESSION = $oldSession;
  
          return $ref ? $ref : true;
      }
code_tokens: public function clear ( ) { $ session = $ this -> getSessionContainer ( ) ; if ( ! $ session -> isSwitchedUser ) { return false ; } $ oldSession = unserialize ( $ session -> session ) ; $ ref = $ session -> ref ; $ _SESSION = $ oldSession ; return $ ref ? $ ref : true ; }
docstring: Restores the original user.
  
  @return bool
docstring_tokens: Restores the original user .