- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I’m facing an issue with session cache when using CSM Query Rules. My script is triggered from CSM Query Rules (sandbox scope) and calls a Script Include in Global scope. When I use gs.getSession().putClientData() / getClientData() directly inside the CSM Query Rules scope, the value is stored and retrieved correctly. But when I call into the Global scope Script Include, the same session value returns undefined, even though gs.getSessionID() is the same in both scopes. I know that CSM query rules run in sandbox environment, I am not able to recollect the reason.
Since I cannot change the Script Include scope and the trigger point will always be CSM Query Rules, what’s the correct way to persist and retrieve values across both scopes?
Should I be using another caching for it?