Force Login in the Chat
-
JarochoCity
- Posts: 180
- Joined: 01 Dec 2005, 01:22
- Location: Mexico
- Contact:
Force Login in the Chat
there should be a force login in the chats i mean in the rooms
-
JarochoCity
- Posts: 180
- Joined: 01 Dec 2005, 01:22
- Location: Mexico
- Contact:
yeah like the one of the admintool
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
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
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.
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
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
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
Force Login
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
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