Phalcon\Session\Adapter\Database::gc PHP Method

gc() public method

public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer
return boolean
    public function gc($maxlifetime)
    {
        $options = $this->getOptions();
        return $this->connection->execute(sprintf('DELETE FROM %s WHERE COALESCE(%s, %s) + %d < ?', $this->connection->escapeIdentifier($options['table']), $this->connection->escapeIdentifier($options['column_modified_at']), $this->connection->escapeIdentifier($options['column_created_at']), $maxlifetime), [time()]);
    }