mlmym icon indicating copy to clipboard operation
mlmym copied to clipboard

Persistent settings

Open pintassilgo opened this issue 1 year ago • 6 comments

Whenever I need to login to Lemmy, my mlmym settings (default sort, auto load more...) reset to default. Is this an instance issue or mlmym doesn't allow to store settings?

pintassilgo avatar May 10 '24 01:05 pintassilgo

your default sort setting is saved in a cookie. auto load more and endless scrolling are saved in browser local storage.

rystaf avatar May 10 '24 03:05 rystaf

Shouldn't these be stored in instance server, linked to user?

pintassilgo avatar May 10 '24 04:05 pintassilgo

related #79

rystaf avatar May 10 '24 16:05 rystaf

Just to add to this issue, it appears that the cookie is hard-coded to expire after 30 days (routes.go, line 794) rather than basing it on something like when the user last visited and/or as part of a device/login flush event.

Assuming I've understood it correctly: hard-coded cookie expiration coupled with client-side storage of settings means users need to reconfigure those settings every 30 days, which is an odd design choice. Not breaking, but it is confusing and frustrating.

couladin avatar Jul 02 '24 13:07 couladin

in version 0.0.49, cookies now refresh every month and will only expire if you don't visit the site for over 10 months.

rystaf avatar Jul 10 '24 16:07 rystaf

Thanks. It would be great if it could be stored in server side. When I log in old Reddit, Lemmy main UI or anything else, I don't need to set up everything again, it's already saved along my data.

pintassilgo avatar Jul 10 '24 16:07 pintassilgo