this post was submitted on 08 Aug 2024
12 points (92.9% liked)

Programming.dev Meta

2474 readers
2 users here now

Welcome to the Programming.Dev meta community!

This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.

Links

Credits

founded 1 year ago
MODERATORS
 

The title says it all. Not even sure if it's going to keep me logged in long enough to submit this post.

top 28 comments
sorted by: hot top controversial new old
[โ€“] v9CYKjLeia10dZpz88iU 2 points 3 months ago (1 children)

I haven't had any issues. Are you using the default lemmy client?

[โ€“] nulluser 1 points 3 months ago (1 children)

No, just good old fashioned Firefox. I've tried several clients and didn't really like any of them compared to the normal web interface. ๐Ÿคท

[โ€“] SteveTech 1 points 3 months ago (1 children)

Do you have any FF extensions that might be interfering somehow?

[โ€“] nulluser 1 points 3 months ago

I have no extensions installed on my mobile Firefox. Maybe I should install some. ๐Ÿคฃ

[โ€“] BehindTheBarrier 2 points 3 months ago (1 children)

I sorta remember this happened, or something like it, try actually clearing your cookies and logging in again. That might make it stick.

[โ€“] nulluser 1 points 3 months ago (1 children)
[โ€“] nulluser 2 points 3 months ago

Well, was a good idea, but alas, I deleted all browsing data (cookies, tabs, the whole shebang), logged back in and was kicked out within a few minutes.

[โ€“] Ategon 2 points 3 months ago (1 children)

Do you have anything that would clear cookies or mess with the jwt you get from logging in in some way?

[โ€“] nulluser 1 points 3 months ago (1 children)

Not that I can think of. This just started this morning, and I haven't done or installed anything recently that might cause this. If it's only happening to me though....

[โ€“] Ategon 2 points 3 months ago (2 children)

Are you able to log in and stay logged in on one of the alternate frontends? E.g. https://a.programming.dev

[โ€“] nulluser 1 points 3 months ago

Seems tied to my phone. Not happening on the desktop. Will try the alternate front end next. Then maybe reboot. ๐Ÿคฃ

[โ€“] nulluser 1 points 3 months ago* (last edited 3 months ago) (1 children)

Ok, so pretty certain this is specific to my phone.

Browsed the recommended alternate front end for as long as I could stand it. Didn't get logged out, but I may have just not waited long enough.

Back on normal frontend, I deleted all browsing data (cookies, etc), logged back in and then got kicked out within a few minutes.

Rebooting the phone now. ๐Ÿคž

Update: Nope, still getting booted within a few minutes. Beyond just using a different browser, I'm out of ideas, so I'll try that for a bit. ๐Ÿคท

Update 2: Doesn't seem to be happening in Brave. So currently, only in FF, only on my phone, clearing cookies and rebooting did not help.

I'm open to any more ideas.

[โ€“] Ategon 3 points 3 months ago (2 children)

which firefox, stable beta or nightly

[โ€“] nulluser 1 points 3 months ago

129.0 (Build #2016035991), hg-2d113ed75bf0+ GV: 129.0-20240801122119 AS: 129.0

[โ€“] nulluser 1 points 3 months ago* (last edited 3 months ago) (1 children)

Update: Haven't used my lemmy.world account in a while, so thought I'd test this out over there. Same thing happened after several minutes. Then I tried on Mastodon.world for a while and it seems to work fine. I'll try giving the alternate front end another round of testing later today.

Addendum: Can't reproduce the problem on t.programming.dev today, and couldn't seem to on a.programming.dev yesterday, so it seems to be specific to the default Lemmy front end.

[โ€“] snowe 1 points 3 months ago (2 children)

so it sounds like default frontend, maybe tied to the version we have (we're still a few versions behind), only mobile ff.

[โ€“] nulluser 1 points 3 months ago (1 children)

I think I figured out how to reproduce it really quick.

  1. Log in to Lemmy on Firefox
  2. Switch to a different app
  3. Switch back to Firefox
  4. Reload the page.

Poof! I'm out. I repeated the test multiple times to confirm it's consistent. Probably actually getting kicked out on step 2. It's like FF decides to expire the Lemmy cookies when the app loses focus.

Armed with that info, I retested two alternate front ends on programming.dev (a. & t.) and default front end on lemmy.world and default front end on programming.drv with Brave. I was previously getting logged out on lemmy.world, but not now (maybe they updated something? Or my test is still flawed.). So, with these steps I can only reproduce it on programming.dev with the default front end on Firefox.

[โ€“] snowe 1 points 2 months ago (1 children)

What OS are you using? Version of FF?

[โ€“] nulluser 2 points 2 months ago

I seem to have isolated the problem to using a link to the website on the phone's home screen (created from FF using the "Add to Home screen" option in the three dots menu next to the address bar.

Starting that way seems to give any session cookies a very short life and they disappear quickly (logging me out). I created a bookmark within FF and have been using that and haven't been logged out since.

In fact, if I use the home screen link to programming.dev, FF doesn't think I'm logged in, but then if I use the bookmark from within that same instance of FF, it instantly sees me as already logged in.

Very strange.

[โ€“] RustySharp 1 points 3 months ago

Desktop FF here, been getting kicked off roughly once a day on default.

Not happening on Mlmym (old.), which I found to be better anyway. Wish I'd know about it before. Please keep it maintained!

[โ€“] mark 2 points 3 months ago* (last edited 3 months ago) (1 children)

Brought this same thing up in a post months ago and got quite a bit of downvotes and no help, so I never attempted to bring it up anymore lol. Maybe you'll have better luck. Saving this thread now... Thank you

The workaround I've been using is to just refresh the page. That tends to work... Sometimes... ๐Ÿซ 

[โ€“] Ategon 2 points 3 months ago* (last edited 3 months ago) (2 children)

I checked your post history, are you talking about this post from a year ago? https://programming.dev/post/749664 (that one has only a couple downvotes which usually is standard as most posts get a couple downvotes though)

Its the kind of thing thats very difficult to solve since not everyone gets it and seems like it pops up randomly (havent been able to clearly reproduce it yet)

Were you also on mobile firefox using the site? Or was the firefox you were using on pc

[โ€“] noproblemmy 2 points 3 months ago* (last edited 3 months ago) (1 children)

One thing that I get with Firefox is that usually by opening a link in background when switching I appear as logged out until I try several ways of refreshing.

Some days ago I was logged out for real, but that it is not so common for me.

[โ€“] ericjmorey 2 points 2 months ago

This is a consistent problem for me

[โ€“] mark 1 points 3 months ago (1 children)

That was the first post. I posted another one a few months back that I've since deleted, which is probably why you can't see it.

I'm usually on mobile Brave browser on my Android. I'm always appearing to be logged out. But, sometimes, when I refresh, I'm suddenly automatically logged in. Other times I have to just login again.

Yup I realize its hard to to reproduce. Do you have a latest Android with mobile Brave browser you can test with?

[โ€“] Ategon 1 points 3 months ago* (last edited 3 months ago)

I use an old android version but I can update to try to replicate

[โ€“] canpolat 2 points 3 months ago

I have the same problem on mobile Firefox on Android. I'm using the default frontend as well. This was not happening a week ago (or maybe 10 days). Started recently.

[โ€“] HauntingScience 1 points 2 months ago

Same thing is happening to me on iPad OSโ€™ Safari. Trying to come from sub.rehab, I had to login on any link coming from there. Refreshing usually didnโ€™t work. The only think that I have here besides base Safari is AdGuard, which I hope it is not interfering or the instance is serving things that are ad-like