Login  |  Register

Author Topic: Always stay logged in (cookies)  (Read 664 times)

Offline yed

  • Full Member
  • ***
  • Posts: 197
    • View Profile
Always stay logged in (cookies)
« on: 11 December 2016, 01:16:48 PM »
Please implement "Always stay logged in" by cookies feature.

It would be kinda ok without it, if remember password in browser worked, but it does not.

Offline SirDagen

  • Jr. Member
  • **
  • Posts: 60
  • Growth is inevitable, having fun is the goal
    • View Profile
Re: Always stay logged in (cookies)
« Reply #1 on: 11 December 2016, 01:17:59 PM »
Good one
Greetings,
SirDagen

Offline moesjiff

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Always stay logged in (cookies)
« Reply #2 on: 06 January 2017, 11:45:50 PM »
+1

Offline ApoY2k

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Always stay logged in (cookies)
« Reply #3 on: 31 January 2018, 05:50:17 AM »
I know this is old, so I hope I'm not breaking any rules, but this feature request is literally the reason I registered because it's a really important feature that is missing in this otherwise awesome site.

Offline Ingix

  • Global Moderator
  • *****
  • Posts: 791
    • View Profile
Re: Always stay logged in (cookies)
« Reply #4 on: 31 January 2018, 10:33:37 AM »
I'm not sure if this isn't already implemented. If you don't log out from the game, then the next time you browse to the site it will open your account again.

This may not work if you switch between playing on different devices, I haven't tested that.

Offline ApoY2k

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Always stay logged in (cookies)
« Reply #5 on: 31 January 2018, 09:59:26 PM »
It does work but seems to be a bit buggy...

The session id is saved into localStorage, but when I leave the page it gets deleted. When I close the browser complelety, it stays and I'm logged in when coming back.

Hmmm...

Offline Stef

  • Administrator
  • *****
  • Posts: 683
    • View Profile
Re: Always stay logged in (cookies)
« Reply #6 on: 03 February 2018, 12:46:26 PM »
It does work but seems to be a bit buggy...

The session id is saved into localStorage, but when I leave the page it gets deleted. When I close the browser complelety, it stays and I'm logged in when coming back.

Hmmm...

I don't fully understand what you're saying here. For me it just saves the session id and logs me back in when I get back. What do you mean by "when I leave" if it's not closing the browser?
If you click "logout" it deletes the session id (and also instructs the server to invalidate it) but I don't assume that is what you're describing?

Offline ApoY2k

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Always stay logged in (cookies)
« Reply #7 on: 05 February 2018, 09:06:21 PM »
It appears that sometimes, when loading up the page, the session in local storage gets invalidated. I haven't been able to properly reproduce it, though. If I can, I'll report back.