The session activity details are stored in the xf_session_activity table until such a time that the session has finished, in which case that is when the last_activity value is updated.
The session activity details are stored in the xf_session_activity table until such a time that the session has finished, in which case that is when the last_activity value is updated.
And usually how much time does it takes? Because as I can see in \XF\Cron\Trophy (and other classes) there is a last_activity check to get only active users, does it work correctly?