How to store a 'session' with cookies


#1

Hi! I’m trying to create a session for each user so they dont have to login every time the app opens, and it will store their data. I am using creator right now, does anyone have any documentation or any guidance for this?


#2

localStorage is the typical way to do this. Checkout localStorage document here: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

You use window.localStorage.setItem(‘key’,‘value’) to store, and window.localStorage.getItem(‘key’) to get it back.