code: public void invalidateReferrerURLCookie(HttpServletRequest req, HttpServletResponse res, String cookieName) {
          invalidateCookie(req, res, cookieName, true);
      }
docs: Invalidate (clear) the referrer URL cookie in the HttpServletResponse.
  Setting age to 0 invalidates it.
  
  @param res