Can a session object be used in page from site code?

Hey
I know this should be a stupid question but when I set a value using session.setItem(“key”, “value”) in my sites code and then try to get it in the page code using getItem method it does not seem to be ready but returns undefined as I would not think it would.

Does this get affected by the SSR engine in some way?

Hello Andreas

can you please share a screen shot of the session values in your browser and your website link.

Thanks
Massa