When I call `routingContext.removeCookie('MyCookie');` in order to remove a cookie, vertx response with and header like
set-cookie: MyCookie=MyValue; Max-Age=0; Expires=Wed, 26 Aug 2020 14:17:01 GMT
While theoretically Max-Age=0 should lead to the cookie being removed from browsers, this sometimes is not the case.
To work around this, I do not call routingContext.removeCookie('MyCookie'); but I call addCookie with the same name, and an empty string as value together with a short expiry. This seems to work more reliably.
Long story short: Why does removeCookie still submit the cookie value?
This stack overflow post deals with the same issue, suggesting that an invalid value should be set in addition to expiring it.