Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent settings #104

Open
pintassilgo opened this issue May 10, 2024 · 6 comments
Open

Persistent settings #104

pintassilgo opened this issue May 10, 2024 · 6 comments

Comments

@pintassilgo
Copy link

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?

@rystaf
Copy link
Owner

rystaf commented May 10, 2024

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

@pintassilgo
Copy link
Author

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

@rystaf
Copy link
Owner

rystaf commented May 10, 2024

related #79

@couladin
Copy link

couladin commented Jul 2, 2024

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.

@rystaf
Copy link
Owner

rystaf commented Jul 10, 2024

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.

@pintassilgo
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants