private void applySessionManagerToSessionStorageEvaluatorIfPossible() {
        SubjectDAO subjectDAO = getSubjectDAO();
        if (subjectDAO instanceof DefaultSubjectDAO) {
            SessionStorageEvaluator evaluator = ((DefaultSubjectDAO) subjectDAO).getSessionStorageEvaluator();
            if (evaluator instanceof DefaultWebSessionStorageEvaluator) {
                ((DefaultWebSessionStorageEvaluator) evaluator).setSessionManager(getSessionManager());
            }
        }
    }
@deprecated as of 1.2.  This should NOT be used for anything other than determining if the sessionMode has changed.
web/src/main/java/org/apache/shiro/web/mgt/DefaultWebSecurityManager.java