Expand my Community achievements bar.

SOLVED

Client Context -> Customization using user profile data from Websphere Commerce

Avatar

Level 2
Hi all,
 
I integrated the login mechanism of a CQ5 site to use the Websphere Commerce authentication, so the profiles of the users of my CQ5 site lives on Websphere Commerce, now I want that to feed the "Client Context" component with that data (User profile information on Websphere Commerce).
 
At this moment I got an API to retrieve from Websphere Commerce the profile information of the current user logged into my CQ5 site, but my question is how I can override and set the correct data (Websphere Commerce data) into the cookies used by the the "Client Context" component ?
 
Any idea of when and how the Client Context cookie "SessionPersistence" is created ?
1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

Avatar

Former Community Member

Hi ,,

We are integrating Websphere ecommerce engine with AEM. Please share information on this .

Hope you can help us.

Avatar

Level 8

The cookie is a session store, created using the Client Context javascript API. To interact with a session store, see http://dev.day.com/docs/en/cq/current/developing/client_context_detail.html#Interacting%20with%520Se... on the page that Scott linked to. There is also a page with information about the API itself: http://dev.day.com/docs/en/cq/current/developing/client_context_detail/ccjsapi.html.

Hope that helps,
scott