@Override
    public void setVersion(int version) {
        this.version = Math.max(DEFAULT_VERSION, version);
    }
{@code -1} indicating that no version property should be set on the cookie.
web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java