(this is my first post, and i didnt rlly know where to put it, so i went for wick forums)
Im currently making a game that utilises localStorage variables to save and load data, and when the games done, im prob gonna add a few updates/versions over time. i was wondering if localStorage data persists between different versions/files
1 Like
It persists through any website, so a save editor can use the same key to get the same info.
If you want something that doesn’t persist between versions of your game. Try using cookies.
1 Like
short answer, yes, as @noobfield said.
If you don’t want it to, you can always save a variable for version number and reset the data if it’s not the latest version number.
I don’t think it changes much with cookies, but for cookies you can at least set expiration dates. If you want to learn how to use cookies, take a look at this demo by BlurredPixels
Keep into account that users are able to clear the local data (and cookies) manually.
1 Like