Tigase closes a session after met inactive time.

Vinoth Rajendran
Added almost 4 years ago

I am using Tigase 5.2.3. I have added a property for a bosh inactivity timer for 60sec. So that the BOSH session will be cleared after 60 sec if it is inactive(i.e, Internet problem in client side, Browser closed, system is in sleep mode and etc.). My web client don't an option to re-create a session if user is in logged in last session is closed. So I move on to the other idea called, Tigase should always keeps a session(Even inactivity time meets).

1) Is this option is available in Tigase?

2) And Is there any other way to handle this problem and how?

Your help will be appreciated.

Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

You could set inactivity time to higher level, but I'd say that better option would be to simply implement client-side logic to reconnect if the session expires.

Added by Vinoth Rajendran over 3 years ago

If I set inactivity time to higher level, any user presence issue will be there?

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Certainly - if you set inactivity to 2h then for 2h user will be visible as online. Again - adding handling of reconnection is the best option.