Expand my Community achievements bar.

SOLVED

SessionStore values from Java code

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

7 Replies

Avatar

Level 10

See if this older community thread helps: Session Store.

Avatar

Level 6

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?

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 6

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

Avatar

Former Community Member

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-manage...

Thx

Avatar

Level 6

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