We are using ejabberd for our chat client and we are using ProcessOne fast reconnect and push Modules.
We have kept session time to 3 minutes mean after 3 minutes if there is no keep alive packet then server will mark that session expired and user will be treated offline.
If I will query that user last activity then server will returns us timeinterval when user was last online. But during session even my app is terminated then If I query last activity it will returns us user as online.
Question: Does ejabberd returns last activity timer based on session or presence ?
As I can see If I just reconnect with ejabberd and do not send any presence in full authentication not on fast rebind. It treat that user as online.