The Setting you need is
CP >> Portal Settings >> Cache time for Who's Online
That setting will check every X mins and update the current list.
Who's Online Timeframe: Users will be listed as online if they have visited within this timeframe (in minutes).
That's the one for how long they will stay in the list.
I have 3mins for the first setting.
And 60 mins for the second.