Hi, we are using a Web Store Only domain.
And using an SC extension, right after I login, in checkout, I am storing a session (some info related to logged-in user) using the SCModel.context.setSession('key', value) method.
But when I visit shopping application and use SCModel.context.getSession('key') the value I get is undefined.
But if I go back to checkout application and use SCModel.context.getSession('key'), I am getting the value which I stored earlier.
Actually, I want that session info to be available across all the SC applications (not just checkout) and when user tries to logout I want to perform some operations if that value exists.
What I really want to achieve here is that if a user logged-in using a specific email then I am storing some user info in session and when that user tries to logout I want them to get redirected to login page (with some additional URL parameters) again instead of Home page.
Any pointers on how I can achieve this? Many Thanks