Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

HTTPSession or ClientContext


Level 10


I do have a requirement where we have users stored in Hybris and we would have service calls to get the authentication tokena nd user object from Hybris, we would like to have this stored, since based on the role for the user we determine what data gets displayed.

Along with the user object i plan on storing JSON responses for data to be displayed on the page.

I plan on storing user object and json data in HTTPSession,

1. is this something good to proceed with or do i need to evaluate clientcontext?

2. Any considerations to bear in mind during the design?

My assumption is that to use client context i will need to have users stored in aem, which is not the case here..

I am on aem 6.2

Please let me know.



4 Replies


Level 8

you can edit client context and use the JSONP Store context store component to add external data to Client Context refer to this example: https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/client-context.html


Level 10

Does it need to be tied to a user? users are not stored in aem

And can i use it like the local storage?

Does it require customization?

Any size constraints- i have like >5MB JSON data .