Project

General

Profile

How to check session is valid or not using http-bind or other from web client like converse.js?.

Vinoth Rajendran
Added almost 4 years ago

Hi,

I am using Tigase 5.2.3 and web client as conversejs. When I login or refresh a page its working fine. But When Http-bind broken for 1min (I have set inactivity timer in properties file) session gets invalid. So I cannot do anything that time utill logout ant re-login. So Is there any way to check session ID valid or not without creating a new session.

My properties file ::

--comp-class-1 = tigase.muc.MUCComponent
--comp-class-6 = tigase.muc.MUCComponent
--comp-class-5 = tigase.muc.MUCComponent

--virt-hosts = 192.168.1.94
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=root&password=root
--user-db = mysql
--admins = admin@192.168.1.94
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub

# To change xmpp port
#--c2s-ports=5333

--comp-name-6 = conference
--comp-name-5 = channel
--comp-name-1 = muc
--cluster-mode = false
--sm-plugins = +message-archive-xep-0136
--debug = server, db, archive, xmpp.impl, xmpp, muc
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent


# To save group chat message.
conference/default_room_config/conference#roomconfig_persistentroom=true
muc/default_room_config/muc#roomconfig_persistentroom=true

channel/default_room_config/channel#roomconfig_persistentroom=true
channel/message-filter-enabled[B]=false

# To Enabling typing notification
conference/muc-allow-chat-states[B]=true
conference/message-filter-enabled[B]=false

muc/muc-allow-chat-states[B]=true

muc/muc-lock-new-room[B]=false
channel/muc-lock-new-room[B]=false

message-archive/auto=true
sess-man/plugins-conf/message-archive-xep-0136/required-store-method=message
sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@192.168.1.94

Replies (1)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Vinoth Rajendran wrote:

Hi,

I am using Tigase 5.2.3 and web client as conversejs. When I login or refresh a page its working fine. But When Http-bind broken for 1min (I have set inactivity timer in properties file)

It doesn't seem to be included in the attached configuration file

session gets invalid. So I cannot do anything that time utill logout ant re-login. So Is there any way to check session ID valid or not without creating a new session.

Well, the only way to verify that the BOSH session is still active is to make subsequent request, and if the session is gone you will receive Invalid SID response.

    (1-1/1)