openstreetmap/openstreetmap-website

Remember me: be more forthcoming about how many days

Closed this issue · 16 comments

On the login page there is a checkbox "[ ] Remember me".

OK but for how many days is a big secret.

Add a mouseover saying for how many days.

If the user knew it was supposed to remember for X days, but it didn't, then he could report a bug with confidence it was a bug.

Else with no clarification, it means "remember me forever".

One finds a cookie, _osm_session
Created Sunday, December 8, 2019 at 7:36:15 PM
Expires Sunday, January 5, 2020 at 7:48:20 PM
Therefore the mouseover should say "Remembers you for four weeks."

So apparently, even if one opens their browser every day and browses the site, after the four weeks are up, one will find oneself suddenly logged out, perhaps. Anyway all this should be made clear in the mouseover, or nearby help button.

As this is Openstreetmap, one would expect all this to be out in the open.

I think it's actually broken. I think originally it was four weeks from the last time you used the site but the refresh of the expiry seems to have got lost and it is now four weeks from login.

I can confirm that lately I've been getting logged out frequently with this checked (weirdly after even less than four weeks).

That is not related. I suspect that we're starting to run low on memory in the memcache store which will cause sessions to be evicted.

@tomhughes: van you please turn my notifications back on. I am only getting notified about other peoples' comments, not yours.

That is not related. I suspect that we're starting to run low on memory in the memcache store which will cause sessions to be evicted.

Is there anything we can do in this repo? Or should we move the ticket to operations?

I can confirm that lately I've been getting logged out frequently with this checked (weirdly after even less than four weeks).

Now it seems down to about a couple of days! Getting less and less. Certainly some cache is getting filled up. Wish TomHughes could help.

That is not related. I suspect that we're starting to run low on memory in the memcache store which will cause sessions to be evicted.

So the session keys aren't saved in the DB, only in memory?

Correct, the production system uses memcache for sessions so the session data is not in the database.

I think this is not actionable in this repo. In case there's still a need to bump the memcache size, please create a new issue on the operations repo instead: https://github.com/openstreetmap/operations

„Open a blank issue.“
(That’s a link somewhere at the bottom)

OK but there they say:

I definitely see the issue that you are referring to but I am unable it as all evidence says it shouldn't be down to memcache.

So maybe I should just be happy with however many days it remembers and give up trying to get it stabilized.

Odd, on wiki.openstreetmap.org one seems to stay logged in for years and years, but on openstreetmap.org it's just a few days.