Session Store


hi,

     trying sessions store in client context. in day.com gave pieces of code how it, didnt anything. please me how have session store in client context.

 

thanks in advance,

krishna reddy.

may create store

 

var storename = "my-store";

    var store = cq_analytics.storeregistry.getstore(storename);

    if ( !store ) {

         store = cq_analytics.persistedjsonstore.registernewinstance(storename, {"test1":"", "test2":"test3"});

    }

    store.setproperty("test1", "test");

   store.setproperty("test2", "blahblah");

 

more info [1] http://dev.day.com/docs/en/cq/current/developing/client_context_detail.html#creating listener react session store update

[2] http://dev.day.com/docs/en/cq/5-5/widgets-api/index.html

 

yogesh



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?