public static boolean getWarningCookie(final RequestContext context) {
        val val = ObjectUtils.defaultIfNull(context.getFlowScope().get("warnCookieValue"), Boolean.FALSE.toString()).toString();
        return Boolean.parseBoolean(val);
    }
Gets warning cookie.

@param context the context
@return warning cookie value, if present.
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java