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;
    }
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;
    }
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 ; }
removes a stored Session
@param string|null $key providerName, if null, remove all sessions
@return $this
removes a stored Session