Users Online (how long users appear for)


Well-known member
In VB I could make the members appearing in users online stay for longer in the AdminCP. By default it was 15 but for new or quiet sites, disrupted by switching to XF, it's useful to change this to 60 minutes to make the site busier to members.

Any idea how I can tweak this so that members display in the users online for 60 mins instead of 15?


XenForo moderator
Staff member
From the dev himself :)

* Returns the length of time after the last recorded activity that a user is considered 'online'
* @return integer Time in seconds
public function getOnlineStatusTimeout()
// TODO: source this from an option?
return XenForo_Application::$time - 900;

line 414, XenForo_Model_Session