Changing Servers

Changing Servers

Postby Furiouszap » Sun Jan 27, 2013 9:21 pm

I can't get my other servers to hold. Normally the cookies are valid for longer than ~20 minutes and this just isn't the case for me anymore. I constantly have to use the change server button instead of just opening the new tabs.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm

Re: Changing Servers

Postby theNakedest » Sun Jan 27, 2013 10:01 pm

I can confirm. I normal change the As/Brom/Calubc bit of the URL, but that hasn't been working lately. I use chrome, if that helps anything.
theNakedest
 
Posts: 190
Joined: Wed Jun 13, 2012 1:10 am
Location: Out Standing In His Field.

Re: Changing Servers

Postby Japhet » Sun Jan 27, 2013 11:17 pm

If you follow these steps, you should have all 3 tabs logged in:

1 Log in
2 Change Server
3 Change Server

If you log out somewhere in that process, that logs you out of all servers. Maybe that's what happened?
Follow Minethings news here and on Facebook
Japhet
 
Posts: 3045
Joined: Wed Jan 28, 2009 4:42 am
Location: New Hampshire

Re: Changing Servers

Postby Furiouszap » Sun Jan 27, 2013 11:50 pm

Japhet wrote:If you follow these steps, you should have all 3 tabs logged in:

1 Log in
2 Change Server
3 Change Server

If you log out somewhere in that process, that logs you out of all servers. Maybe that's what happened?


I follow these 3 steps, and then it seems like a 20 ~ 30 minutes later or so I am required to change servers again but it keeps me logged into the last one I was on.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm

Re: Changing Servers

Postby Furiouszap » Mon Jan 28, 2013 4:43 am

It just did it again. Didn't log out and I opened my 3 links for Aso Bromo and Calbuco (Chrome quicktabs) and they all went to Calbuco.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm

Re: Changing Servers

Postby Bob1234567890X » Mon Jan 28, 2013 7:03 am

I keep getting logged out of Bromo
This post will self destruct in twenty seconds.
Bob1234567890X
 
Posts: 8530
Joined: Fri Jul 10, 2009 6:00 pm
Location: Bob World

Re: Changing Servers

Postby sti1000 » Mon Jan 28, 2013 7:52 am

Bob1234567890X wrote:I keep getting logged out of Bromo

same
sti1000
 
Posts: 1998
Joined: Thu Jun 25, 2009 7:20 am
Location: Belgium

Re: Changing Servers

Postby invictus12 » Mon Jan 28, 2013 9:10 am

I keep getting logged out of Aso, although it doesn't happen with Calbuco. I checked, last time I was logged out of Aso, and I could still access Calbuco
Image
invictus12
 
Posts: 5679
Joined: Sat May 09, 2009 3:45 pm
Location: On Mars. I'm controlling a robot to mine for me =p

Re: Changing Servers

Postby Japhet » Mon Jan 28, 2013 2:22 pm

That's... very strange. I wish I was seeing the same thing so I could reproduce the problem here. I'll keep this open in case anyone has any clues as to why it's happening. I'll also dig into the sessions database and maybe find some clues there.
Follow Minethings news here and on Facebook
Japhet
 
Posts: 3045
Joined: Wed Jan 28, 2009 4:42 am
Location: New Hampshire

Re: Changing Servers

Postby Furiouszap » Mon Jan 28, 2013 5:27 pm

Just got home from class. It was working fine (all 3 servers changing nicely) and I tried to open them again at home and it logged me into calbuco 3 times.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm

Re: Changing Servers

Postby navan » Mon Jan 28, 2013 5:51 pm

It is indeed odd as I can atest that at least the old sessions/cookies that I'm using from before both the Bromo/Cal server crash and the Aso server crash are working as expected. I did hit the Aso login link after the server was restored for Aso, but that didn't amount to much due to the server being still a little buggy at that time. All of that does seem to suggest something in perhaps issuing new sessions.
Member of the BLU-82 Corporation since 15th August 2009.

Check out some dragons here

BLU-82 Vehicle Combat w/ Mods Sim here
navan
 
Posts: 6728
Joined: Thu May 07, 2009 11:04 am

Re: Changing Servers

Postby marhjan » Mon Jan 28, 2013 6:03 pm

Aso will not hold. I'm able to login directly to Bromo and Calbuco - but when I type aso.minethings.com I get directed to the login screen. I've experienced this sporadically before but never so consistently, and not just the one server. Not the end of the world, but it is a nuisance
marhjan
 
Posts: 119
Joined: Sun Aug 14, 2011 3:08 pm

Re: Changing Servers

Postby theNakedest » Mon Jan 28, 2013 6:17 pm

I can't get any logins to stick. I'll remain logged in as long as the browser is open, but if I close it then open it again, I'm presented with the login screen. And this seems to hold true for changing the URL to get to different servers. It will work as long as I've changed servers properly during a session, but after that it's just a login screen.
theNakedest
 
Posts: 190
Joined: Wed Jun 13, 2012 1:10 am
Location: Out Standing In His Field.

Re: Changing Servers

Postby Japhet » Thu Jan 31, 2013 4:07 pm

This bug is a taste of will happen to all computers in 25 years.

Computers work fastest when dealing with smaller numbers. Any number past 2 billion requires more resources to keep track of. So there are a lot of bugs (like this one) where if a number needs to go past 2 billion, something bad happens.

Another interesting thing about computers is that they keep track of time by counting the number of seconds past 1970. The current time is 1.3 billion or so. See where this is going?

I didn't want the game-server cookies to expire on your browser so I set them to expire 25 years in the future. Had anyone bothered to look last year, you' see a cookie that expired in 2037 (i.e. never). That still uses the same mechanism of counting the number of seconds since 1970 and that number was small enough until just this month because Jan. 2038 is over 2 billion seconds after 1970! So your webrowser doesn't want anything to do with that number and instead sees that as "expire when the browser's closed."

So that was easy enough to fix. I just made it expire 1 year from now instead of 25.

That took care of the game servers (aso/bromo/cal) but then I noticed that the main page (http://www.minethings.com) was having the exact same issue. I didn't write the code that sets the cookie timeout for that page. That's in CakePHP (the framework that minethings is built on). So I dug into that code to see what it was doing, and found this line:
Code: Select all
$this->cookieLifeTime = 788940000;

So what's 788940000 divided by 60*60*24*365? Yep, 25 years. Same bug. Same method of saying "never." At least I'm not the only one who likes 25.

So the next time you log in, your cookies will be reset and you won't have to log in again until 2014.
Follow Minethings news here and on Facebook
Japhet
 
Posts: 3045
Joined: Wed Jan 28, 2009 4:42 am
Location: New Hampshire

Re: Changing Servers

Postby navan » Thu Jan 31, 2013 4:36 pm

AOL actually suffered this bug a few years back. They had their timeout sessions set to essentially never by using this method. Naturally for them that caused a whee bit more of a problem then it did here fortunately.
Member of the BLU-82 Corporation since 15th August 2009.

Check out some dragons here

BLU-82 Vehicle Combat w/ Mods Sim here
navan
 
Posts: 6728
Joined: Thu May 07, 2009 11:04 am

Re: Changing Servers

Postby Furiouszap » Thu Jan 31, 2013 6:26 pm

Japhet wrote:This bug is a taste of will happen to all computers in 25 years.

Computers work fastest when dealing with smaller numbers. Any number past 2 billion requires more resources to keep track of. So there are a lot of bugs (like this one) where if a number needs to go past 2 billion, something bad happens.

Another interesting thing about computers is that they keep track of time by counting the number of seconds past 1970. The current time is 1.3 billion or so. See where this is going?

I didn't want the game-server cookies to expire on your browser so I set them to expire 25 years in the future. Had anyone bothered to look last year, you' see a cookie that expired in 2037 (i.e. never). That still uses the same mechanism of counting the number of seconds since 1970 and that number was small enough until just this month because Jan. 2038 is over 2 billion seconds after 1970! So your webrowser doesn't want anything to do with that number and instead sees that as "expire when the browser's closed."

So that was easy enough to fix. I just made it expire 1 year from now instead of 25.

That took care of the game servers (aso/bromo/cal) but then I noticed that the main page (http://www.minethings.com) was having the exact same issue. I didn't write the code that sets the cookie timeout for that page. That's in CakePHP (the framework that minethings is built on). So I dug into that code to see what it was doing, and found this line:
Code: Select all
$this->cookieLifeTime = 788940000;

So what's 788940000 divided by 60*60*24*365? Yep, 25 years. Same bug. Same method of saying "never." At least I'm not the only one who likes 25.

So the next time you log in, your cookies will be reset and you won't have to log in again until 2014.


Maybe that's why the servers are crashing. Big numbers.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm

Re: Changing Servers

Postby Furiouszap » Fri Feb 01, 2013 11:32 pm

Hasn't fucked up since you posted your cookie 25 year thing. I believe this bug is fixed.
Image
http://imgur.com/T7rds9F
Furiouszap
 
Posts: 2891
Joined: Mon Apr 19, 2010 9:00 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users