Expand my Community achievements bar.

SOLVED

Client Context Profile data issue

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 9

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