I have a website that stores login info of a user in a localstorage key on login. A few clicks later, user opens the game which is hosted within the same server. How do I get access to the example.com localstorage entries?
Develop games in your browser. Powerful, performant & highly capable.
Well, since you posted this in the scripting forum, the solution would be to access local storage via the localStorage browser API.
localStorage
Hey Ashley,
I'm not particular about scripting. I just assumed this wouldn't be possible without scripting since webstorage is deprecated. I wasn't able to use the API while using worker, so I'd prefer to avoid it if possible. Are there other ways of doing this?
There are no official features in Construct that still use WebStorage, so you will have to use scripting.