<%
    boolean isAuthenticated = (session.getAttribute("SPRING_SECURITY_CONTEXT") != null || session.getAttribute("MSTR_AUTH") != null);

    if (isAuthenticated) {
        request.setAttribute("isMstrSessionAlive", true);
    } else {
        request.setAttribute("isMstrNotAuthenticated", true);
    }
%>