public function destroy($id)
    {
        $idColumn    = $this->options->getIdColumn();
        $nameColumn  = $this->options->getNameColumn();
        $adapter     = $this->getAdapter();
        $sessionData = [
            $idColumn   => $id,
            $nameColumn => $this->sessionName
        ];
        $session     = $adapter->select($sessionData);

        if ($session) {
            return (bool) $this->getAdapter()->delete($session);
        }

        return false;
    }
public function destroy($id)
    {
        $idColumn    = $this->options->getIdColumn();
        $nameColumn  = $this->options->getNameColumn();
        $adapter     = $this->getAdapter();
        $sessionData = [
            $idColumn   => $id,
            $nameColumn => $this->sessionName
        ];
        $session     = $adapter->select($sessionData);

        if ($session) {
            return (bool) $this->getAdapter()->delete($session);
        }

        return false;
    }
public function destroy ( $ id ) { $ idColumn = $ this -> options -> getIdColumn ( ) ; $ nameColumn = $ this -> options -> getNameColumn ( ) ; $ adapter = $ this -> getAdapter ( ) ; $ sessionData = [ $ idColumn => $ id , $ nameColumn => $ this -> sessionName ] ; $ session = $ adapter -> select ( $ sessionData ) ; if ( $ session ) { return ( bool ) $ this -> getAdapter ( ) -> delete ( $ session ) ; } return false ; }
Destroy Session - remove data from resource for given session id.

@param string $id

@return bool
Destroy Session - remove data from resource for given session id .