code: function matchPath(ctx) {
      const pathname = parse(ctx).pathname;
      if (pathname.indexOf(cookie.path || '/') !== 0) {
        debug('cookie path not match');
        return false;
      }
      return true;
    }
docs: check url match cookie's path