code: @SuppressWarnings("unchecked")
  	private void saveToCookie(IExtendedRequest req, String reqURL, AuthenticationResult result, boolean keepInput) {
  
  		String strParam = null;
  		try {
  			strParam = serializePostParam(req, reqURL, keepInput);
  		} catch (Exception e) {
  			if (tc.isDebugEnabled()) {
  				Tr.debug(tc, "IO Exception storing POST parameters onto a cookie: ", new Object[] { e });
  			}
  		}
  
  		if (strParam != null) {
  			Cookie paramCookie = new Cookie(POSTPARAM_COOKIE, strParam);
  			paramCookie.setMaxAge(-1);
  			paramCookie.setPath(reqURL);
  			if (webAppSecurityConfig.getHttpOnlyCookies()) {
  				paramCookie.setHttpOnly(true);
  			}
  			if (webAppSecurityConfig.getSSORequiresSSL()) {
  				paramCookie.setSecure(true);
  			}
  			result.setCookie(paramCookie);
  		}
  
  		if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
  			Tr.debug(tc, "encoded POST parameters: " + strParam);
  		}
  	}
docs: Save POST parameters(reqURL, parameters) to the cookie
  
  @param extReq
  @param reqURL
  @param result