public Map<String, Object> getSessionAttributes(final WebContext context) {
        return context.getRequestAttribute("sessionStorageAttributes", Map.class).orElseGet(LinkedHashMap::new);
    }
Gets session attributes.

@param context the context
@return the session attributes
support/cas-server-support-pac4j-api/src/main/java/org/apereo/cas/pac4j/BrowserWebStorageSessionStore.java