public function gc($maxlifetime)
    {
        $this->pdo->queryWithParam(
            'DELETE FROM session WHERE last_update < DATE_SUB(NOW(), INTERVAL :maxlifetime SECOND)',
            [[':maxlifetime', $maxlifetime, \PDO::PARAM_INT]]
        );

        return $this->pdo->getLastOperationStatus();
    }