SMF Development > Fixed or Bogus Bugs
Bug: Users Online
Overseer:
Sometimes doesn't show me, and I know i'm here.
Plus I can see two or three people have just posted within a couple seconds of me and its showing.
(like now its showing 1 online that isnt me, and i'm sure at least 3 people are active right now)
[Unknown]:
I'm not sure what the problem with it is... EXCEPT that it only updates every like 20 seconds.
-[Unknown]
David:
Yeah, this is funky for me too. Have noticed it on devel too. It doesn't always show people online that were online the click before. Does it no longer keep you online for 15 minutes?
andrea:
Indeed, suddenly I am not online any longer.
[Unknown]:
I changed this:
// Don't mark them as online more than every so often.
if (!empty($_SESSION['log_time']) && $_SESSION['log_time'] + 20 >= time())
return;
$_SESSION['log_time'] = time();
To this:
// Don't mark them as online more than every so often.
if (empty($_SESSION['log_time']) || $_SESSION['log_time'] < time())
$_SESSION['log_time'] = time();
elseif ($_SESSION['log_time'] >= (time() - 20))
return;
And suddenly 4 people pop online and stay that way. I think it may be fixed ;D. Just... not quite... sure... why..?
-[Unknown]
Navigation
[0] Message Index
[#] Next page
Go to full version