Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Creating a Persisted Store that uses cookie as storage medium

Avatar

Level 1

Hello folks,

I am trying to create the custom Persisted Store (Context Hub) that should use cookie as storage. By default, its the local storage. Is there any way we can modify the storage .

Note: As per the documentation, we can use either of local, session, memory, cookie storage as the persistence. I tried giving the persistence name as cookie in default config but this doesn't work.

var defaultConfig = {

   initialValues: {

        fullName : 'John',

        age  : 30
   },

   persistence : {

        name : 'cookie'
   }

};

Any suggestions ?

1 Reply

Avatar

Administrator

Jörg HohFeike Visser​ Any help here?

~kautuk



Kautuk Sahni