I keep getting logged out

Questions, comments, and suggestions about this site should go here.
Post Reply
thewrongchristian
Member
Member
Posts: 422
Joined: Tue Apr 03, 2018 2:44 am

I keep getting logged out

Post by thewrongchristian »

When I log in, and check "Log me on automatically each visit", I keep getting logged out regardless.

There seems to be no rhyme nor reason to it, it doesn't seem time based, and it can happen in short order (on the order of minutes.)

Which means the first version of this message wasn't actually submitted, because I was logged out while I wrote it, and I lost the original text! (this is actually the third attempt at this single submission!)

This never used to happen. It seems it started after an outage a couple of years ago, which I suspect was the one reported here:

https://www.reddit.com/r/osdev/comments ... orum_down/

So I wonder if it's a flag on the forum software (phpBB?) that's not been restored?
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: I keep getting logged out

Post by Octocontrabass »

The last time I heard of someone having this kind of issue, it was caused by a broken add-on interfering with session cookies. Have you tried disabling your browser add-ons?
thewrongchristian
Member
Member
Posts: 422
Joined: Tue Apr 03, 2018 2:44 am

Re: I keep getting logged out

Post by thewrongchristian »

Octocontrabass wrote:The last time I heard of someone having this kind of issue, it was caused by a broken add-on interfering with session cookies. Have you tried disabling your browser add-ons?
Food for thought. I'll investigate by trying Firefox in troubleshooting mode.

The reason I thought it was related to the server software is I distinctly remember that outage being the trigger for the change in behaviour.

But it could be a coincidence and a false association.
thewrongchristian
Member
Member
Posts: 422
Joined: Tue Apr 03, 2018 2:44 am

Re: I keep getting logged out

Post by thewrongchristian »

thewrongchristian wrote:
Octocontrabass wrote:The last time I heard of someone having this kind of issue, it was caused by a broken add-on interfering with session cookies. Have you tried disabling your browser add-ons?
Food for thought. I'll investigate by trying Firefox in troubleshooting mode.

The reason I thought it was related to the server software is I distinctly remember that outage being the trigger for the change in behaviour.

But it could be a coincidence and a false association.
FYI, I currently think this is the Live Marks:

https://github.com/nt1m/livemarks/

Enabling this again logged me out within minutes, having been logged in for days.
User avatar
xenos
Member
Member
Posts: 1118
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: I keep getting logged out

Post by xenos »

This is an interesting observation, especially since you mentioned Firefox and session cookies.

I have a similar issue that I was getting logged out here and from another forum some time ago using Firefox and I still don't know why. I tried to investigate the issue by opening the developer toolbar, network view, before navigating to those forums, to see what data is actually transmitted when I get logged out, but the problem did not occur while I did that. So I thought that maybe it was an issue with a Firefox version I had used in the meantime that was now fixed by an update, and so I stopped investigating. But then when I went to the forums again, I got logged out again (and since this time I had the toolbar closed, I did not see the network traffic, so I still got no clue why). So I started investigating again, keeping the toolbar open and waiting for being logged out again, but it hasn't occurred since then, and so I still have no data of such an event. All I saw in the developer toolbar was the correct transmission of cookies and getting logged in. This looks like a Heisenbug to me.

If you have any progress to share or ideas what to test I'd be happy to try those out. I don't use Live Marks, but maybe some other addon that I use interfaces with Firefox in a similar way to trigger this behavior.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
iProgramInCpp
Member
Member
Posts: 81
Joined: Sun Apr 21, 2019 7:39 am

Re: I keep getting logged out

Post by iProgramInCpp »

I use uBlock Origin. I found that the forum doesn't log me out if I disable it for the site. Maybe one of the cookies it uses for the session stuff is blocked by the plugin?
Hey! I'm developing two operating systems:

NanoShell --- A 32-bit operating system whose GUI takes inspiration from Windows 9x and early UNIX desktop managers.
Boron --- A portable SMP operating system taking inspiration from the design of the Windows NT kernel.
thewrongchristian
Member
Member
Posts: 422
Joined: Tue Apr 03, 2018 2:44 am

Re: I keep getting logged out

Post by thewrongchristian »

iProgramInCpp wrote:I use uBlock Origin. I found that the forum doesn't log me out if I disable it for the site. Maybe one of the cookies it uses for the session stuff is blocked by the plugin?
No, it's the live marks extension. I also have uBlock origin, and my first thoughts were that, so I disabled that first.

I've not been logged out in the nearly six weeks I've had it disabled, yet was almost immediately logged out when I last enabled it.

I miss Live Marks, so I'm thinking of opening an issue on it. But I'm lost on the mechanism that might be causing it, it just seems such an unrelated issue to keeping RSS bookmarks up to date.
User avatar
eekee
Member
Member
Posts: 872
Joined: Mon May 22, 2017 5:56 am
Location: Kerbin
Discord: eekee
Contact:

Re: I keep getting logged out

Post by eekee »

Just now, I got logged out twice when opening the first page of the Test Beds thread, but only when there was a session id (&sid=...) in the URL. It didn't happen when opening the last page of the thread from a notification email, perhaps because there was no sid.

I got logged out by surprise the other day, too, though it wasn't repeated.

I use Firefox, but don't have an RSS reader extension in this profile. My extensions are Ublock Origin and Stylus. The latter I use on this site so I can have a good dark theme with a nicer shade of blue.

I wonder if it's anything to do with Firefox's privacy protection. It now has an option to "copy link without site tracking," implying it has code to recognize session ids. Maybe Firefox freaks on the removal of &e= with the addition of &sid=. Maybe something similar happens when a page is loaded from an RSS reader, but I wouldn't know.

...And I also got logged out when I hit Preview for this post. Maybe it was something to do with the testing I was doing on the above thread.
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
iProgramInCpp
Member
Member
Posts: 81
Joined: Sun Apr 21, 2019 7:39 am

Re: I keep getting logged out

Post by iProgramInCpp »

thewrongchristian wrote: No, it's the live marks extension.
I don't have it. Disabling uBlock Origin fixed it for me. So for me it's uBlock Origin.
Hey! I'm developing two operating systems:

NanoShell --- A 32-bit operating system whose GUI takes inspiration from Windows 9x and early UNIX desktop managers.
Boron --- A portable SMP operating system taking inspiration from the design of the Windows NT kernel.
User avatar
chase
Site Admin
Posts: 710
Joined: Wed Oct 20, 2004 10:46 pm
Libera.chat IRC: chase_osdev
Location: Texas
Discord: chase/matt.heimer
Contact:

Re: I keep getting logged out

Post by chase »

I think it might be a combination of Cloudflare and PHPBB session validation which was set to validate the first 3 octets of the client IP to prevent session stealing. I've turned that off but enabled the Validated X_FORWARDED_FOR header option.
nexos
Member
Member
Posts: 1078
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: I keep getting logged out

Post by nexos »

I was also having an issue where it when I logged in and hit return to previous page, it take back to the login screen, hence creating an infinite loop. I think that fixed that issue as well.
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
Post Reply