public boolean isRequestedSessionIdFromURL() {
        if (isHttpSessions()) {
            return super.isRequestedSessionIdFromURL();
        } else {
            String value = (String) getAttribute(REFERENCED_SESSION_ID_SOURCE);
            return value != null && value.equals(URL_SESSION_ID_SOURCE);
        }
    }
Constructs and returns a {@link DisabledSessionException} with an appropriate message explaining why
session creation has been disabled.

@return a new DisabledSessionException with appropriate no creation message
@since 1.2
web/src/main/java/org/apache/shiro/web/servlet/ShiroHttpServletRequest.java