public static int getCookieMaxAge(final String maxAge) {
        if (NumberUtils.isCreatable(maxAge)) {
            return Integer.parseInt(maxAge);
        }
        return (int) Beans.newDuration(maxAge).toSeconds();
    }
Gets cookie max age.

@param maxAge the max age
@return the cookie max age
core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java