Hi,
I have created customStore in Client Context. :
CQ_Analytics.CustomStoreMgr = CQ_Analytics.JSONStore.registerNewInstance("customstore");
I am able to read the request param as well as something from SlingService call and populate in Client Context as one attribute.
But now I wanted to read browser session attribute in this custom store. As this information is already available at client side I dont want to make slingService call or wanted to pass as URL parameter.
As we have request object in client store I tried using request.getSession but no hope.
I tried '<%=session.getAttribute("abc")%>' in JS but this also not working in customStore JS. (this works in JS which is on any component JSP page)
Can any one please guide how to read Session in customStore ?
Views
Replies
Total Likes
No one knows how to read browser session attribute in Client context :(
Views
Replies
Total Likes
I think if you define a javascript variable in the page with the session value, you will be able to use it on the client context.
Views
Replies
Total Likes
Tried not working :(
Views
Replies
Total Likes
Views
Likes
Replies