src/Viserio/Component/Session/Handler/PdoSessionHandler.php
public function close()
    {
        $this->commit();

        while ($unlockStmt = \array_shift($this->unlockStatements)) {
            $unlockStmt->execute();
        }

        if ($this->gcCalled) {
            $this->gcCalled = false;

            // delete the session records that have expired
            $sql = "DELETE FROM {$this->table} WHERE {$this->lifetimeCol} < :time - {$this->timeCol}";

            $stmt = $this->pdo->prepare($sql);
            $stmt->bindValue(':time', \time(), \PDO::PARAM_INT);
            $stmt->execute();
        }

        if ($this->dsn !== false) {
            $this->pdo = null; // only close lazy-connection
        }

        return true;
    }
public function close()
    {
        $this->commit();

        while ($unlockStmt = \array_shift($this->unlockStatements)) {
            $unlockStmt->execute();
        }

        if ($this->gcCalled) {
            $this->gcCalled = false;

            // delete the session records that have expired
            $sql = "DELETE FROM {$this->table} WHERE {$this->lifetimeCol} < :time - {$this->timeCol}";

            $stmt = $this->pdo->prepare($sql);
            $stmt->bindValue(':time', \time(), \PDO::PARAM_INT);
            $stmt->execute();
        }

        if ($this->dsn !== false) {
            $this->pdo = null; // only close lazy-connection
        }

        return true;
    }
{@inheritdoc}