Page 1 of 1
Force Login in the Chat
Posted: 10 Apr 2006, 04:59
by JarochoCity
there should be a force login in the chats i mean in the rooms
Posted: 10 Apr 2006, 06:55
by Lapo
What it does it mean?
Like the "force login" of the admin tool? In that case I wouldn't agree.
Why a user, who's already inside, would need to login again?
Can you explain your question a bit better?
yeah like the one of the admintool
Posted: 10 Apr 2006, 14:57
by JarochoCity
yeah like the one of the admintool
i will like that because in the case of a login with password, because sometimes the user get frozen in a Room and he tries to log in again and it says user alredy login when he disconnect...its because the user gets frozen
Posted: 10 Apr 2006, 15:27
by Virusescu
Well.. I can see where you are getting at.
I ran into a problem like this a while ago.
Problem with the force login is that it will alter the way that users log in (when they do it without a password).
Usually the maxIdleTime will get rid of this lazy disconects, but it shouldn't happen too often (from what I've understood).
I would treat this within the zone login extension with an interval and some messages like ping/pong between the server and client, but this can get preety messy for a login

. If you want more details just say.
I've already implemented something like this for a chess game when I needed to check for disconnects of this kind more often than the maxIddleTime, because I couldn't let this time with a small value, because in a game of chess, if user where thinking too much they risked an automated disconnection from the server

, so I've build my own decision of "whether a user is still online" algorithm based on a ping > pong message.
Force Login
Posted: 15 Mar 2007, 13:53
by dvine
Hey,
i have the same problem - have a game where i need long timeouts. but for example when a user hits back in his browser to leave the chat and the game room he sometimes is not logge out - and then he can not log back in, because his account is still "logged in"...
think you can post your exact workaround here for everyone? client and server-side?
thanks a lot
Daniel