OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 3:10 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: I keep getting logged out
PostPosted: Mon Jan 15, 2024 3:57 pm 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 403
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?


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Mon Jan 15, 2024 6:05 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
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?


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Mon Jan 15, 2024 6:39 pm 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 403
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Tue Jan 23, 2024 7:01 pm 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 403
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Wed Jan 24, 2024 12:51 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1110
Location: Tartu, Estonia
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


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Mon Mar 04, 2024 11:53 pm 
Offline
Member
Member

Joined: Sun Apr 21, 2019 7:39 am
Posts: 76
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Tue Mar 05, 2024 2:18 am 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 403
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Tue Mar 05, 2024 5:44 pm 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 817
Location: Hyperspace
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


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Tue Mar 05, 2024 10:46 pm 
Offline
Member
Member

Joined: Sun Apr 21, 2019 7:39 am
Posts: 76
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Fri Mar 08, 2024 12:52 pm 
Offline
Site Admin
User avatar

Joined: Wed Oct 20, 2004 10:46 pm
Posts: 684
Location: Texas
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.


Top
 Profile  
 
 Post subject: Re: I keep getting logged out
PostPosted: Fri Mar 08, 2024 2:50 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group