Closed dnsbty closed 3 years ago
It looks like maybe doing something like this with localStorage could work too, except that it will break if the user is in private mode in Safari: https://thepugautomatic.com/2020/05/persistent-session-data-via-localstorage-in-phoenix-liveview/
Rather than store the player ID in the URL, we should store it in a cookie so that you can come back to the game if your battery dies or anything like that and the URL gets corrupted