SessionStore values from Java code | Community
Skip to main content
francisco_ribei
New Participant
October 16, 2015
Solved

SessionStore values from Java code

  • October 16, 2015
  • 7 replies
  • 1913 views

Hi,

I'd like to know if it is possible to retrieve values stored in a Custom session store from a java code.

I looked into the documentation but didn't find anything.

is it possible?

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 Runal_Trivedi

See following article which explains how you can create your custom store using server data:

http://blogs.adobe.com/aemtutorials/2013/07/24/customize-the-client-context/

Along with this you will need to have working knowledge of ccjsapi that Scott mentioned in his comment.

- Runal

7 replies

smacdonald2008
New Participant
October 16, 2015

See if this older community thread helps: Session Store.

francisco_ribei
New Participant
October 16, 2015

Hi @smacdonald2008,

Thanks for your reply, but that's not exactly what I am looking for.

Let's say we have a custom session store defined and registered via JS.

Then I have a JSP, and I'd like to grab some property value server side. Is it possible?

smacdonald2008
New Participant
October 16, 2015
Runal_Trivedi
Runal_TrivediAccepted solution
New Participant
October 16, 2015

See following article which explains how you can create your custom store using server data:

http://blogs.adobe.com/aemtutorials/2013/07/24/customize-the-client-context/

Along with this you will need to have working knowledge of ccjsapi that Scott mentioned in his comment.

- Runal

francisco_ribei
New Participant
October 16, 2015

Hi Runal,

I followed this article and this is working. Actually I'd like to know if some of those values stored in the custom session store can be grabbed in the java code. Let's say I'd like to display some information based on the component. I know I can via js, but is it possible via java in server side?

 

Thanks

October 16, 2015

Hi

Were you able to get the solution to get session store data in java?

 

Also, would you mind posting the JS solution that worked for you. I am stuck on a similar use case and looking for some help - http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__7jcr-hi_there_1_iwas.html#forum__7jcr-hi_there_1_iwas__bf6k-thanks_scottit

Thx

francisco_ribei
New Participant
October 16, 2015

Hi,

I wouldn't. As far as I could see, the solution would be try read the cookies to get the SessionStore values. The problem is when their values are stored on the browser LocalStorage.

Thanks