I need your help here. It seems that the online/offline status is sometimes not showing the actual state of a player. Its kind of hard to track where and when this happens. Please keep your eyes open for any inconsistencies you notice. It would be absolutely great if anyone of you would be able to find a repeatable way to end up with a false online status.
Thanks a lot.
Ok, I'll start looking for a way to do this, but i've noticed quite frequently that I'm playing and it says I'm offline.
Does being listed as 'logged in' have anything to do with checking 'remember me' and not logging out when you leave the site? Just curious...
I always click remember me and never log out.
Are you guys ready to read a long, unorganized, barely edited, chronological, narrative post that might shed some light on weewar's login / offline-online status problems?!?!
Well, ready or not, here it is. I hope it helps. ![]()
Hi, this is pretty interesting. I have two accounts - one is spadequack, the other is thatsme. (I created thatsme just for testing and observing what a new game screen looks like to explain it to new players who don't know how to invite.)
I was on spadequack.
I signed out of spadequack.
I signed in as thatsme.
I browsed around.
I might have hit back a few times, not sure.
I went to weewar.com/login
Interesting... I thought I was logged in as thatsme
I log in as spadequack.
I am invited to a game as spadequack, join it, and start playing.
http://battleground3.weewar.com/game/65366
I open a new tab (firefox) to the community page and see a yellow triangle.
I click the triangle and see that the game is the 1-player game I set up as thatsme.
I realize... that I'm signed is as thatsme and playing a game as spadequack at the same time!
The game I'm playing says that spadequack is online. I continue playing rounds perfectly fine in the game.
I get a yellow triangle on the game page saying that I was invited to another game.
I click the link and get to this game http://battleground2.weewar.com/game/65367 where spadequack is the person invited. I cannot play in this game since apparently I'm logged in as thatsme! I will refer to this game later as Game B.
This game also says that spadequack is online. That means both spadequack and thatsme are online! But spadequack is only able to do things as spadequack from the game page that he is playing. Clicking away from there makes everything turn into thatsme's point of view. Yet the game page refreshes fine and I am still able to play as spadequack. I am also able to chat and refresh manually with no changes in the situation.
More testing reveals that if I open a new tab by clicking headquarters, it takes me to spadequack's headquarters. Remember that when I opened a new tab by clicking community, it took me thatsme's community page (yellow triangle for thatsme's game, going to expanded chat shows that thatsme is online and in the chat).
Opening a new tab on New Game takes me to spadequack's new game page (which is obvious because spadequack cannot start a new game.)
Opening a new tab on Account takes me to spadequack's account page.
Navigating from any of those pages to the community page or to Game B makes thatsme become the user logged in, but if I navigate to one of spadequack's old games in spadequack's headquarters http://battleground3.weewar.com/game/56714, spadequack is the one signed in (because it does not say "you are not participating in this game" as it does when I navigate to Game B.)
I can also get to thatsme's headquarters by clicking headquarters from Game B.
Discovery! thatsme is signed on on battleground2. spadequack is signed on on battleground3. Going to http://battleground3.weewar.com/headquarters/games takes me to spadequack's HQ and http://battleground2.weewar.com/headquarters/games to thatsme's HQ.
But I still cannot play in Game B despite trying to change the url to say battleground3 instead of battleground2. It redirects me back to battleground2. Similarly with trying to get to the Community page as spadequack by changing bg2 to bg3. A code is appended to the URL after the redirect.
e.g. http://battleground2.weewar.com/game/65367 => http://battleground2.weewar.com/game/65367/NFdlFQF2NypG
http://battleground2.weewar.com/headquarters/games/open =>
http://battleground2.weewar.com/headquarters/games/open?code=eNdaiZWRbeOP
Continuing from headquarters explorations...
I am spadequack for spadequack's old game: http://battleground3.weewar.com/game/56714
but I am not signed in as spadequack for spadequack's old game:
http://battleground2.weewar.com/game/63798/wzm2i4bhgBkj
probably because the game is hosted on bg2.
I am spadequack on spadequack's old game:
http://battleground1.weewar.com/game/61345/xlN5He4v11Pr
Finally, I have just logged off of battleground2 under thatsme. I go to weewar.com/login and it takes me to the login page. I go to battleground3.weewar.com/login and it takes me to spadequack's welcome page! I'm still signed on as spadequack.
Clicking to HQ takes me to spadequack's HQ (bg3). Then clicking community takes me to spadequack's community page!
http://battleground2.weewar.com/headquarters/games/open?code=ajRixZNx7Bud#nowhere
Note that it is on bg2.
I can also join Game B, which is under bg2. Clicking around elsewhere from when I was on bg3 (new game, account) kept things on bg3. Clicking my headquarters from a bg2 page takes me to bg2 headquarters.
Finally, going to weewar.com/login still takes me to the login page. battleground1.weewar.com/login shows me already logged in. same for bg2 and bg3. battleground4.weewar.com/login takes me to the login page. Same for bg5. (There's a bg5?) battleground6.weewar.com/login is not a page.
I think this is replicable, but it is late and I am going to sleep shortly.
Geez, looks like session confusion... some strict, repeatable steps would be cool to see. I remember before they had the more severe issue of suddenly "becoming" someone else while logged in as your own account.
Sorry, I haven't had all that much time lately to look into this more, but I just tried a few things.
I signed onto spadequack from weewar.com/login and then navigated to one of my games that is on battleground3. Did other things for about 20 minutes so that my session on weewar.com expired. Then I clicked a few of my games which were in battleground1, bg2, and bg3 (I think doing that logged me into bg1 and bg2, maybe). Then I went to weewar.com/login, got to the login screen, signed on as thatsme, got to thatsme's headquarters, clicked around and I could access everything just fine as thatsme, but that's because i was under weewar.com/* and at no time did the URL change to battlegroundX.weewar.com/*. Then I went to battleground3.weewar.com/headquarters/games and got to spadequack's headquarters. I clicked around from there and everything went well.
Then I went to battleground4.weewar.com/login, encountered the login screen, signed in as thatsme, got to thatsme's headquarters, but then when I went to the community page, it changed to battleground2, where I checked on the chat that I was now spadequack. Clicking around places other than games maintains battleground2. Then I went back to the community page (still as spadequack) and then changed the URL to weewar.com/headquarters/games/open and I am now thatsme.
So from what I have gathered, the community pages live on weewar.com and battleground2.weewar.com and going from battlegroundX.weewar.com to the community pages changes the URL to bg2. If I have two tabs open on firefox, one on weewar.com and one of battleground2.weewar.com, I can chat with myself (spadequack with thatsme) in the chat
I can also log in on one server as one user and log in on another server as another user and be logged in as two different people simultaneously with problems arising when a page redirects me to a page on a specific server, such as the community pages and game pages.
I don't know whether this has something to do with online/offline status thing occasionally not working.
I did get that online/offline bug (I was online without a green "on") yesterday I think but I think it was a result of hitting back and forward on firefox. It went away (I had a green "on") after I clicked on a game.
All in all, what I wrote about in lots of text is not a serious problem, but something the devs might want to be aware of if they are not already aware.
I think it's a significant problem that sessions are not shared across servers. Not sure of possible solutions for them [based on their underlying infrastructure and architecture].
I know that at my work we're doing load balancing across several web servers and getting the sessions to be replicated across the servers was really really prohibitive in terms of network traffic for very little value. The only time you need to have sessions mirrored across all servers is if one server dies then you wouldn't have to re-login on another server, big hairy deal.
To replicate 5000 sessions required about 3GB of traffic per minute which is really hard when your network fabric to the load balancers is only 100Mb.
One value is that when you are observing a game on a server you're not signed in on, then you don't have to sign in to comment as yourself and not "Guest xx" - it also makes the links to Headquarters and stuff appear as opposed to Login. Not really a big deal since logging in takes a few seconds, but it is kinda annoying.
I think I was more concerned about their previous issues of people getting mismatched sessions. I suppose on further thought that not sharing sessions isn't that big a deal if it is harmless (since you legitimately know the passwords of multiple accounts). Nevertheless, it's a bit annoying that I can't stay logged in across all the /battleground\d+.*/ sites
FWIW, though, I understand that having DB-stored or memcached sessions isn't that much more work, either. At least not with a Ruby framework.
I think your mixing up two things here, Pistos. The bug you mention, that caused you to end up in someone elses Headquarter was fixed months ago. This one we're talking about now concerns the online status.
I'm aware they're two different things, but I was pointing out that I let my concern over the mismatched sessions spill over into the idea of shared or unshared sessions (across servers). I am also aware that the topic of this particular thread is online/offline status sometimes being reported/displayed erroneously; I apologize for somewhat [participating in the] hijacking [of] this thread.
Thanks again for chiming into a thread, though
Sending ...