original_string: public function removeSessionData($key = null)
      {
          $authSessionRefresh = array();
          foreach ($this->authSessions as $authSession) {
              /* @var $authSession AuthSession */
              if (isset($key) && $key != $authSession->getName()) {
                  $authSessionRefresh[] = $authSession;
              }
          }
          $this->authSessions = $authSessionRefresh;
          return $this;
      }
code: public function removeSessionData($key = null)
      {
          $authSessionRefresh = array();
          foreach ($this->authSessions as $authSession) {
              /* @var $authSession AuthSession */
              if (isset($key) && $key != $authSession->getName()) {
                  $authSessionRefresh[] = $authSession;
              }
          }
          $this->authSessions = $authSessionRefresh;
          return $this;
      }
code_tokens: public function removeSessionData ( $ key = null ) { $ authSessionRefresh = array ( ) ; foreach ( $ this -> authSessions as $ authSession ) { /* @var $authSession AuthSession */ if ( isset ( $ key ) && $ key != $ authSession -> getName ( ) ) { $ authSessionRefresh [ ] = $ authSession ; } } $ this -> authSessions = $ authSessionRefresh ; return $ this ; }
docstring: removes a stored Session
  @param string|null $key providerName, if null, remove all sessions
  @return $this
docstring_tokens: removes a stored Session