/** * Destroy session — Override to check the existing session is in the DB, as HHVM errors otherwise * * @param string $id * @return bool */ public function destroy($id) { $rows = $this->tableGateway->select(array($this->options->getIdColumn() => $id, $this->options->getNameColumn() => $this->sessionName)); if ($row = $rows->current()) { return parent::destroy($id); } else { return true; } }
/** * Destroy session * * @param string $id * @return bool */ public function destroy($id) { parent::destroy($id); return true; }