New user here, yes I’m looking for alternatives to Reddit …

I created an account on lemmy.world, subscribed to a couple communities, and even replied to a post. So far, so good.

However, it keeps showing me as not logged in. The weird thing is I still have my subscribed communities, but am not logged in. Every once in a while when I try something more than reading, I have to login again (then again, sometimes I don’t). For example, by the time I read a bunch of posts in a community to decide whether I want to subscribe, I sometimes need to login again to subscribe

I’m browsing lemmy.world from Safari on iPad, and should have mostly default settings. Can anyone help with explaining or fixing this behavior? It’s really annoying.

  • trainsaresexy@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Does it happen on other browsers on your ipad? sounds buggy and maybe not as much QC on safari for ipad. Firefox is good on iOS.

    • AA5B@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I tried Firefox, which does clarify a bit ….

      refreshing the page in Safari shows that there is a caching issue with the subscriptions: after refreshing I can no longer see those, so it’s consistent with being logged out. If I am logged out, I should not see my subscribed communities (privacy issue)

      I didn’t need to refresh in Firefox. When I appeared logged out, I also did not see my subscribed communities.

      one trigger is browsing elsewhere: I clicked a link to a communities browser at browse.lemmy.de, and when I clicked back to lemmy.world (either browser), I was logged out.

      I was also logged out in Safari for unknown reason. Could it only allow login from one browser at a time (either by lemmy or on iPad)? Could it sign out if Safari was paged out of memory?

      • trainsaresexy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        No clue, maybe? Out of my area, I just know that it’s often worth trying different browsers if it seems like it could be a client side problem.

  • silas@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I am working on a Lemmy client and have noticed that the Login system is secure, but it isn’t very robust. Usually, there is something called a “refresh token” provided that automatically verifies users and lets a user stay logged in indefinitely. Lemmy doesn’t have that implemented at this time, so eventually you will be logged out by your browser as a security measure when your cookie expires and you will have to log in again. For Safari, the maximum time is 7 days before you are logged out.

    So, until Lemmy implements refresh tokens or similar, this will probably be how it is on most browsers and Lemmy clients.

    • AA5B@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I’d be fine if it were 7 days. I haven’t figured out a pattern, but it happens within a browsing session

    • AA5B@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Maybe. My iPad is pretty old so maybe it pages out of memory more often than a modern one would.

      I am up to date on iPadOS, but my model is on the list likely to be dropped from support in September

    • davidgro@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I just discovered this problem (regular chrome PWA) and noticed that at least sometimes I wasn’t really logged out, and refreshing it showed the correct view. Seems like yet another cache issue

      • AA5B@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        I’ll have to try that next time. Ido see the list of communities I have subscribed to, as if I were logged in. However the GUI shows “sign in” where my profile should be, and I can’t do an action like subscribe to a community without logging in again.

        Edit: updated above: part of it does seem to be a caching issue, but in the other direction. After refreshing I am still logged out but can no longer see my subscribed communities. The caching problem is seeing those despite being logged out.

        It doesn’t change how annoying it is to have to login multiple times in a single browsing session