Ghost of V

Re: Remember login broken
« Reply #20 on: September 15, 2014, 06:04:43 AM »
I just seemingly got logged out on my phone. This is weird. I'll wait and see if it happens again, and try to nail down what triggers it.

Meanwhile, if anyone else is affected, please let us know. I currently haven't a clue as to what could be causing it, so every piece of information helps.

Maybe it has something to do with tapatalk? Happens to me every time I leave the app.

*

Offline Snupes

  • Planar Moderator
  • *****
  • Posts: 1957
  • Counting wolves in your paranoiac intervals
    • View Profile
Re: Remember login broken
« Reply #21 on: September 15, 2014, 11:39:37 AM »
I just seemingly got logged out on my phone. This is weird. I'll wait and see if it happens again, and try to nail down what triggers it.

Meanwhile, if anyone else is affected, please let us know. I currently haven't a clue as to what could be causing it, so every piece of information helps.

Maybe it has something to do with tapatalk? Happens to me every time I leave the app.
Doesn't happen to me, and I use Tapatalk for this place more than the computer.
There are cigarettes in joints. You don't smoke it by itself.

Offline Blanko

  • Administrator
  • *****
  • Posts: 2471
    • View Profile
Re: Remember login broken
« Reply #22 on: September 15, 2014, 02:27:01 PM »
I've been logged out myself, once from my computer and once from my phone. I don't use Tapatalk so it's not that.

*

Offline Pete Svarrior

  • e
  • Planar Moderator
  • *****
  • Posts: 16093
  • (◕˽ ◕ ✿)
    • View Profile
Re: Remember login broken
« Reply #23 on: September 15, 2014, 04:57:09 PM »
So, it looks like most (all?) people affected are using more than one machine/browser to browse FES. As a quick test, I logged in and logged out on a second browser while having my usual browser up - I ended up being logged out from both, with the cookie from the original browser disappearing.

I then logged in from my main browser permanently and from the second browser with an expiry of 2 minutes. After that expired, only the secondary browser got logged out.
Read the FAQ before asking your question - chances are we already addressed it.
Follow the Flat Earth Society on Twitter and Facebook!

If we are not speculating then we must assume

Ghost of V

Re: Remember login broken
« Reply #24 on: September 15, 2014, 05:43:58 PM »
I've been logged out myself, once from my computer and once from my phone. I don't use Tapatalk so it's not that.

Tapatalk could be causing the issue for some people though. It seems like the site is only allowing one instance to be logged in at a time. So logging into your account under a different IP/whatever could log you out from the other instance or both in some cases.

*

Online Lord Dave

  • *
  • Posts: 7686
  • Grumpy old man.
    • View Profile
Re: Remember login broken
« Reply #25 on: September 15, 2014, 07:28:49 PM »
I'm on my phone (via opera) with both WiFi and cell tower net.  I also use my PC (Firefox) with sandboxie.

It'll log me out like once a month but that's it.
If you are going to DebOOonK an expert then you have to at least provide a source with credentials of equal or greater relevance. Even then, it merely shows that some experts disagree with each other.

*

Offline Pete Svarrior

  • e
  • Planar Moderator
  • *****
  • Posts: 16093
  • (◕˽ ◕ ✿)
    • View Profile
Re: Remember login broken
« Reply #26 on: September 15, 2014, 08:58:38 PM »
It seems like the site is only allowing one instance to be logged in at a time.
That's certainly not true. It does seem, however, that logging out can sometimes log out *all* instances.
Read the FAQ before asking your question - chances are we already addressed it.
Follow the Flat Earth Society on Twitter and Facebook!

If we are not speculating then we must assume

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9778
  • Professional computer somebody
    • View Profile
Re: Remember login broken
« Reply #27 on: September 16, 2014, 12:29:18 AM »
So, it looks like most (all?) people affected are using more than one machine/browser to browse FES. As a quick test, I logged in and logged out on a second browser while having my usual browser up - I ended up being logged out from both, with the cookie from the original browser disappearing.

You've cracked it! Thanks for spotting that, pizaa.

In its Logout function, SMF does this (among other things):

Code: [Select]
   if (!empty($user_info['id']))
      updateMemberData($user_info['id'], array('password_salt' => substr(md5(mt_rand()), 0, 4)));

The password_salt here is what's used for encrypting the user's password in the login cookie. Since it gets reset on logout from any browser, this will cause all current logins to be terminated, as their cookies will no longer be valid.

Fixing this is going to require a bit of thinking, as it looks like the salt also gets reset at login time, so logging back in again would break other logins regardless.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9778
  • Professional computer somebody
    • View Profile
Re: Remember login broken
« Reply #28 on: September 16, 2014, 12:52:51 AM »
I've just pushed a fix that removes the above code in the logout function, and deployed that:

https://github.com/theflatearthsociety/forum.tfes.org/commit/01f96ef52772685f0c745d972499b528ea3fa912

Upon closer inspection, this only happens on login in a few places, none of which is likely to cause problems.

Let me know if this is still a problem, or for those who have been affected, please let me know if it stops happening.
when you try to mock anyone while also running the flat earth society. Lol

Thork

Re: Remember login broken
« Reply #29 on: September 18, 2014, 12:21:12 PM »
And yet we still don't have EU cookie warnings telling us that identifiable information about us is being stored. I live in the EU dammit. >o<

I have a right to know and choose if I wish to accept cookies. Why this barbaric stealth?

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9778
  • Professional computer somebody
    • View Profile
Re: Remember login broken
« Reply #30 on: September 18, 2014, 12:26:53 PM »
And yet we still don't have EU cookie warnings telling us that identifiable information about us is being stored. I live in the EU dammit. >o<

I have a right to know and choose if I wish to accept cookies. Why this barbaric stealth?

Thork, you know better than to derail S&C threads. But while you're here, have you had any further issues with being logged out in the past two days?
when you try to mock anyone while also running the flat earth society. Lol

Thork

Re: Remember login broken
« Reply #31 on: September 18, 2014, 01:21:13 PM »
No, it seems fixed.

But now I want a cookie notice. This is supposed to be a Bastian for internet openness and honesty. A cookie message is polite at least and a legal necessity in some parts of the world.

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9778
  • Professional computer somebody
    • View Profile
Re: Remember login broken
« Reply #32 on: September 18, 2014, 01:40:23 PM »
No, it seems fixed.

Excellent, thanks for confirming.

If you'd like to discuss anything else, please start a new thread.
when you try to mock anyone while also running the flat earth society. Lol