code: public static void setStateParam(String name, String value, HttpServletRequest req, HttpServletResponse res) {
  		setStateParam(name, value, req, res, false);
  	}
docs: Sets a cookie.
  @param name the name
  @param value the value
  @param req HTTP request
  @param res HTTP response