title: ejabberd Fast Reconnect, Push Mode And Last Activity
body: <p>We are using ejabberd for our chat client and we are using ProcessOne fast reconnect and push Modules.</p>
  
  <p>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. </p>
  
  <p>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. </p>
  
  <p>Question: Does ejabberd returns last activity timer based on session or presence ?</p>
  
  <p>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.</p>