latitudegames / AIDungeon

Infinite adventures await!
http://www.aidungeon.io/
MIT License
3.18k stars 555 forks source link

[BUG] Using back button on web browser logs me out #250

Open Sporking opened 4 years ago

Sporking commented 4 years ago

🐛 Bug Report

This is in the Firefox browser, maybe others.

If I am playing AI Dungeon, and I accidentally click the "back" button in the web browser, which happens to be right above and next to the similarly shaped left-arrow button at the upper left corner of the webpage (for going up a level, e.g. exiting the current story and looking at top-level menus), then AI Dungeon suddenly goes back to the opening page, and completely forgets who I am and that I have previously logged in. I then have to log in again and find my story in the saved stories list. This is very jarring when I am in the middle of a story, and it sometimes happens frequently when I am investigating the "new stories" list and have looked at a story and then want to go back to the list. Due to muscle memory, it is very easy to accidentally click the wrong left-pointing arrow.

Please use a cookie to remember who the current logged-in user is, so that I can use the web browser's back button and then the forward button and then be looking at the same story I was before, without having to log in again. Logging out should require an explicit menu option choice (as it does for most websites), not just clicking the back button.

Sporking commented 4 years ago

Sorry, I misremembered the app's back button as being a left arrow. It is sometimes actually an "X", and a "<" other times. Still, the same problem exists.