Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
Well, since you posted this in the scripting forum, the solution would be to access local storage via the localStorage browser API.
Develop games in your browser. Powerful, performant & highly capable.
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.