Force Login in the Chat

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

Force Login in the Chat

Post by JarochoCity »

there should be a force login in the chats i mean in the rooms
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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?
Lapo
--
gotoAndPlay()
...addicted to flash games
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

yeah like the one of the admintool

Post 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
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

Post 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.
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
dvine
Posts: 47
Joined: 21 Sep 2006, 10:08
Location: Köln, Germany
Contact:

Force Login

Post 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
Post Reply