protected function deleteSession($hash) { $query = $this->dbh->prepare("DELETE FROM {$this->config->table_sessions} WHERE hash = ?"); $query->execute(array($hash)); return $query->rowCount() == 1; }