nesdev.com
http://forums.nesdev.com/

Forum keeps logging me out
http://forums.nesdev.com/viewtopic.php?f=13&t=10419
Page 2 of 2

Author:  thefox [ Mon Apr 14, 2014 7:15 am ]
Post subject:  Re: Forum keeps logging me out

Seems like this problem has fixed itself.

Author:  tokumaru [ Mon Apr 14, 2014 7:45 am ]
Post subject:  Re: Forum keeps logging me out

It looks that way to me too. Everything has worked as expected for a while.

Author:  thefox [ Mon Jun 23, 2014 5:25 pm ]
Post subject:  Re: Forum keeps logging me out

...aaaand now it has started logging me out again. :)

Author:  thefox [ Wed Sep 16, 2015 12:56 pm ]
Post subject:  Re: Forum keeps logging me out

Yearly status report: it's still happening on Chrome. Also the "Hide my online status this session" checkbox doesn't seem to work reliably, although I'm not sure what is its definition of a "session".

Author:  tokumaru [ Wed Sep 16, 2015 1:17 pm ]
Post subject:  Re: Forum keeps logging me out

It hasn't happened to me anymore. Not frequently, at least... it does happen once every couple of weeks, but that doesn't annoy me.

Author:  FrankWDoom [ Wed Sep 16, 2015 4:40 pm ]
Post subject:  Re: Forum keeps logging me out

This has been happening to me frequently on one machine I use, using chrome in incognito mode. I do this so when all the private tabs close all he cookies and whatnot are cleared up. However, as long as I keep one private tab open, the session stays alive for the various sites I've logged into. Except here, where if I leave the forum I am almost certainly going to be logged out when I come back. Leaving a forum tab open seems to prevent this for some amount of time.

Author:  tepples [ Wed Sep 16, 2015 5:25 pm ]
Post subject:  Re: Forum keeps logging me out

phpBB's manual states that sessions are based on more than the session ID in your cookie. As an extra measure against session hijacking (e.g. Firesheep) and session fixation, an administrator can set phpBB to validate your public IP address (/16, /24, or the whole thing), the User-agent and Referer headers provided by your browser, and the X-Forwarded-For header provided by a proxy. This means if your DHCP lease expires and you get a different IP address, you might get logged out. Or if you're behind a carrier-grade NAT (common in developing countries and with wireless ISPs) or a transparent proxy (which AOL dial-up was notorious for using), you might get logged out.

NESdev BBS is currently set to these security settings:
  • Allow persistent cookies ("Keep me logged in"): On, no expiration
  • Restrict a session to a /24's worth of public IP addresses (such as 123.45.67.xx)
  • Validate User-agent
  • Do not validate X-Forwarded-For
  • Validate hostname in Referer of POST requests
And these load settings:
  • Users disappear from "Who is online" after 5 minutes
  • Sessions expire after 1 hour (I'm not sure if this is an hour after login or an hour after last page view)

And obviously, if you're using private or incognito mode, your browser will toss your session cookie more aggressively.

Author:  thefox [ Wed Sep 16, 2015 6:03 pm ]
Post subject:  Re: Forum keeps logging me out

tepples wrote:
This means if your DHCP lease expires and you get a different IP address, you might get logged out.

That theory goes out the window (in my case) since I started this thread when I had a static IP (I don't anymore, but I doubt that the IP address changes very often).

Quote:
NESdev BBS is currently set to these security settings:
  • Validate User-agent

I wonder how pedantic the User-agent check is. Chrome does update itself awfully often...

EDIT: The User-agent seems very likely to be the cause. Just as I wrote this post, I noticed in Chrome's update dialog that it was ready to update after restart, and after I restarted, I had been logged off.

Author:  TmEE [ Mon Apr 11, 2016 2:35 am ]
Post subject:  Re: Forum keeps logging me out

I seem to get logoffs too, but only when I am on the commute to work. Only thing that changes is that I am on train WiFi rather than my home network.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/