public function _destroy($pId)
    {
        if (! isset($this->_items[$pId])) {
            $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
            $this->_items[$pId]->loadByRealid($pId);
        }

        if ($this->_items[$pId]->getId()) {
            $this->_items[$pId]->delete();
        }

        return true;
    }
public function _destroy($pId)
    {
        if (! isset($this->_items[$pId])) {
            $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
            $this->_items[$pId]->loadByRealid($pId);
        }

        if ($this->_items[$pId]->getId()) {
            $this->_items[$pId]->delete();
        }

        return true;
    }
public function _destroy ( $ pId ) { if ( ! isset ( $ this -> _items [ $ pId ] ) ) { $ this -> _items [ $ pId ] = Agl :: getModel ( self :: DB_COLLECTION ) ; $ this -> _items [ $ pId ] -> loadByRealid ( $ pId ) ; } if ( $ this -> _items [ $ pId ] -> getId ( ) ) { $ this -> _items [ $ pId ] -> delete ( ) ; } return true ; }
Destroy the session from the database.

@param string $pId Session id
@return bool
Destroy the session from the database .