public function gc($max)
    {
        // delete sessions older than max TTL
        $ttl = time() - $max;

        return $this->app['db']
            ->delete(self::TABLENAME)
            ->where('access', $ttl, '<')
            ->execute() instanceof PDOStatement;
    }