public void setFilterOncePerRequest(boolean filterOncePerRequest) {
        this.filterOncePerRequest = filterOncePerRequest;
    }
Sets whether the filter executes once per request or for every invocation of the filter. It is recommended
to leave this disabled if you are using a {@link javax.servlet.RequestDispatcher RequestDispatcher} to forward
or include request (JSP tags, programmatically, or via a framework).

@param filterOncePerRequest Whether this filter executes once per request.
web/src/main/java/org/apache/shiro/web/config/ShiroFilterConfiguration.java