Xmpp.client.idle working but weird

Question 1:

----------------

I’ve set my xmpp.client.idle = 180,000 milliseconds which is 3 mins.

So I access to the Openfire, Sessions > Client Sessions > XXX Users

The session created is 3:04:23

The session last active is 3:04:25

With keep-alive implemented, every 1 mins will send a ping/heart-beat to Openfire and thus the session last active becomes 3:05:30 and so on

Weird things is at 3:07:xx the connections will be killed. It seem the Openfire compare the session created instead of session last active. I tried few times the same result eventhought I change xmpp.client.idle to 2 mins. After 2 mins (compare the session created), the connection will be kill.

Any idea?

Question 2:

----------------

Wondering, if my application send a ping/heart-beat to Openfire to keep the session alive, the session last active will be updated is it?**
**