protected function deleteSession($hash)
    {
        $query = "DELETE FROM {$this->config->table_sessions} WHERE hash = :hash";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['hash' => $hash]);
        return $query_prepared->rowCount() == 1;
    }
protected function deleteSession($hash)
    {
        $query = "DELETE FROM {$this->config->table_sessions} WHERE hash = :hash";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['hash' => $hash]);
        return $query_prepared->rowCount() == 1;
    }
protected function deleteSession ( $ hash ) { $ query = "DELETE FROM {$this->config->table_sessions} WHERE hash = :hash" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; $ query_prepared -> execute ( [ 'hash' => $ hash ] ) ; return $ query_prepared -> rowCount ( ) == 1 ; }
Removes a session based on hash
@param string $hash
@return boolean
Removes a session based on hash