public static boolean isSessionExpired() {
        return wasViewExpired() || Boolean.parseBoolean(Faces.getRequestParameter(SESSION_EXPIRED_PARAMETER));
    }
makes sure that there is no double-logout

@param request
@param response
@param useFallback
@param fallbackPath
support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/Forms.java