Client Context Profile data issue | Community
Skip to main content
October 16, 2015
Solved

Client Context Profile data issue

  • October 16, 2015
  • 2 replies
  • 888 views

Hi,

When a signed in user updates the profile information we can see the user details  getting updated under “home/users/project1“ (for eg: /home/users/project1/divya@test.com/profile) , but when we check the client context, it doesn't display the update profile data.

[img]screenshot.png[/img]

Once the client context is loaded again with the same profile using “Load a profile” button, client context gets refreshed with the updated values.

We can see the similar behaviour in geometrixx/en site also.

How do we handle this issue?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

From screenshot I am hoping you are testing in author instance. Yes you need to load profile OR login at [1] for geometrixx.   This should not be the case in publish.

[1]    http://localhost:4502/content/geometrixx/en/toolbar/account/login.html

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

From screenshot I am hoping you are testing in author instance. Yes you need to load profile OR login at [1] for geometrixx.   This should not be the case in publish.

[1]    http://localhost:4502/content/geometrixx/en/toolbar/account/login.html

Community Advisor
October 16, 2015

Answer lies in how client content stores and aggregates the data. Following is taken from http://docs.adobe.com/docs/en/cq/5-5/developing/client_context_detail.html

 

The Client Context is a general term for the box that appears overlaid on top of a web page. It allows you to see a set of collected or computed data. It is based on two main concepts:

  • Session Stores
  • Context Store components

The information displayed basically comes from two sources:

  • the browser
  • the server (see JSONP Store for information coming from 3rd party instances)

Your JS scripts can easily write information into the Client Context, but this information will and should stay on the client-side. The Client Context is not designed to write back to the server. For that, you should use a form or customized JS.

The Client Context displays data that comes from various stores. These are like buckets (or JS objects) and are saved on the browser as a cookie