code: public void sendPermanentCookie(String name, String value) {
          context.addCookie(Cookie.builder(name, value).setMaxAge(Cookie.ONE_YEAR * 20).build());
      }
docs: Sends long to live cookie to browse with response. This cookie will be asked to live for 20 years.
  
  @param name name of cookie
  @param value value of cookie.