Idle Users

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Bosskafett
Posts: 41
Joined: 24 Jan 2012, 00:04

Idle Users

Post by Bosskafett »

How can I make it so that a user doesn't get disconnected when they are idle. Or at least extend the time. I tried extending the time and the users wouldn't disconnect for a while but eventually they would but it would appear with many problems like the user not being able to login because they are still logged in says the server.

Help me get rid of the idle timeouts if possible. Thank you.

Jack
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Idle Users

Post by Bax »

You can change the <MaxUserIdleTime> parameter in the SFS configuration.
Or you can make the client send an empty extension request to the server from time to time.
Paolo Bax
The SmartFoxServer Team
Bosskafett
Posts: 41
Joined: 24 Jan 2012, 00:04

Re: Idle Users

Post by Bosskafett »

A different client was having problems on his side which caused glitches for himself. Simply changing the MaxUserIdle param helped and the empty extension request is also a good idea.
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
Post Reply