Lemmy cookie expiring and forgetting everything?

Posted this to AskLemmy (https://lemmy.world/post/17088629), but thought it worth posting here:

I use old.lemmy.world as my interface and I've noticed that roughly every month I'm:

  • Forcibly logged out and have to do the re-auth dance for no apparent reason.
  • Everything I've set in Settings is forgotten: Default Listing reverts to All, Default Post Sort reverts to Hot, and so on.

My browser is set to retain cookies and such, so it's not PEBKAC/PICNIC. Why is Lemmy doing a nuke-from-low-orbit every month (roughly) despite me using it as recently as the day before? Why aren't my preferences being retained between logins?

I suspect the recent update (https://mastodon.world/@LemmyWorld/112706805419064266) explains the latest event, but the questions still stand.

MrKaplan Mod ,
@MrKaplan@lemmy.world avatar

looking over the mlmym code, it appears that there is a hardcoded cookie expiration of 30 days.

You might want to raise an issue on GitHub about this.

Brewchin OP ,
@Brewchin@lemmy.world avatar

Thanks for looking into that, and for the reply - this would explain a lot.

Coupled with mlmym issue 104, noting that those settings are always stored client-side in the cookie, it explains what I'm experiencing: https://github.com/rystaf/mlmym/issues/104

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • support@lemmy.world
  • test
  • worldmews
  • mews
  • All magazines