Featured New Release
Box cover for Teen Bush 10
Teen Bush 10
Studio: Team Skeet
Release date: 7/31/2026


all new releases
All Forums > Tech Talk > Tech Talk Forum Page 7 > Can't Stay Logged In
AuthorPost
Bob All-Star Supporter
All-Star Member

5516 Posts
3/03
Posted - Feb 5 2017 : 11:25AM
Every time I leave the site now, even for a millisecond, I'm automatically logged out. On the login-page, the "keep me logged in" box is checked. My cookies setting is the same "medium" that it's always been.
Any idea what the problem is?
Flash All-Star Supporter
Golden Age Classic

11018 Posts
5/01
Posted - Feb 5 2017 : 11:39AM
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Feb 5 2017 : 11:59AM
We switched the site to HTTPS earlier this month. There are a few mechanisms in place that should be forcing your browser to use the HTTPS version of the site. Look at the URL in your browser's address bar. Does it say 'secure' or https://?
If you're getting logged out it means our site is either not able to set the login cookie or your browser is not sending it to the server.
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Feb 5 2017 : 12:01PM
Bob - I replied to you PM with a debugging link and some instructions.
Bob All-Star Supporter
All-Star Member

5516 Posts
3/03
Posted - Feb 5 2017 : 12:07PM
^
Thanks, Drew. Everything is working now.
Thanks as well, Flash.
 
sir wankalot
Member

UK
904 Posts
5/03
Posted - Feb 24 2017 : 8:08AM
I can not reply to the last topic i posted. I'm seemingly logged in on all other pages but on this page i'm constantly shown as logged off.
Topic
I've cleared cookies using the links but the problem persists. I'm on Firefox.
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Feb 24 2017 : 8:42AM
Try this: Go to the home page, see if you are logged in there. if you are then go back to the topic and see if you are logged in there as well.
ninja1
Senior Member

2939 Posts
1/08
Posted - Feb 24 2017 : 6:55PM
sir wankalot's post sounds somewhat similar to the discussions of this thread and this thread too. I just tested it again and problem still persists (yes I tried Drew's "Try this" above).
To avoid the issue, I have trained myself to never open an ADT thread before logging in.
sir wankalot
Member

UK
904 Posts
5/03
Posted - Feb 25 2017 : 3:14PM
Clearing the cache in my browser (firefox) seems to have remedied this. I was logged on in all other pages...including homepage.
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Feb 26 2017 : 8:35AM
This was a clue for me. I made a change to the encoded caching HTTP Etag header that's sent to the browser in the page response. The change was to add the forum user ID as part of the data hash that generates the tag. So if you visit a topic when you are logged in vs. logged out your browser will see two different Etags. This will hopefully clear things up.
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Mar 4 2017 : 9:03AM
Anyone else still experiencing login problems?
Stanley Moon All-Star Supporter
All-Star Member

4 Wishes Left
346 Posts
8/15
Posted - Mar 4 2017 : 4:05PM
I find myself logged out about 3 days or so. I can't see what I'm differently on my end (running CCleaner or other things that might clear cache/cookies), so I don't know what's causing it.
ninja1
Senior Member

2939 Posts
1/08
Posted - Mar 8 2017 : 8:58PM
My android device seems to be maintaining a persistent login, though it's been only a few days now.
But that is still notable; previously I had to re-login every time I visited ADT.
Drew Black
broken crankshaft

8011 Posts
9/99
Posted - Mar 9 2017 : 10:57AM
On the morning of March 4th I changed the max-age setting for the Strict-Transport-Security server header from 1 day to 1 year. So unless you clear your cache your browser should remember that all of ADT should only be accessed with https. I also made some changes to the way that the server automatically attempts to force browsers to redirect to the secure versions of a page.
Stanley Moon All-Star Supporter
All-Star Member

4 Wishes Left
346 Posts
8/15
Posted - Mar 9 2017 : 7:52PM
So far I've been staying on. I guess what you did has worked.



Jump To: