Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

HTTPSession or ClientContext

Avatar

Level 10

All,

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.

Regards,

Nicole

4 Replies

Avatar

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

Avatar

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 .