I've just upgraded from beta9 to beta10 and suddenly I have over 60 instances of "Anonymous" being logged in showing in my "Who's online" block in Drupal. :(

Comments

phreadom’s picture

Title: Many Anonymous users? » Many (60+) Anonymous users showing as logged in in "Who's online"?
vb’s picture

Strange. I think I have changed nothing in that area. On my dev pc I see only myself or 0 guests when i logout.

vb’s picture

Please comment line 77 and 82 in file PhpbbVBridgeApp.php and see what happen

public function authenticateUser()
  {
    global $phpbb_user;
  	global $db, $user, $template, $auth, $config;

    if ($this->getStatus())
  	  return false;

    phpbb_save();

    //if (empty($user->session_id)) {
      // Start session management
      $user->session_begin();
      $auth->acl($user->data);
      $user->setup();
    //}

    $phpbb_user->data['is_registered'] = $user->data['is_registered'];
    $phpbb_user->data['is_bot'] = $user->data['is_bot'];
    
    phpbb_load();

  	return ($phpbb_user->data['user_id'] != ANONYMOUS);
  }
phreadom’s picture

Well, after making that edit the number seems to be dropping now. It went down to 57, 53, 51... I let it sit for awhile while I put coffee on, and then it was down to 29... then 21... now 20. :)

Now 15 in the span of a minute or two. We'll see if it goes all the way back down.

UPDATE: It appears to be back to normal now. No "Anonymous" users are showing up in the list. Only the 3 actual logged in users. :) (like 10 minutes after I posted the previous message)

vb’s picture

Please try to restore changes and we will see if that was the case. I do not know why and not sure.

phreadom’s picture

I restored the changes and immediately saw an Anonymous user... it's back up to 17 again currently. :(

So it's pretty clearly something related to that.

vb’s picture

Thanks

phreadom’s picture

I'm just going to disable it again for now...

There are currently 130 users and 169 guests online.

There are only 4 people actually logged in currently. Not 130. :( I'm not sure what detrimental effects there could be from allowing that to keep going up?

And what are the side effects from forcing session activation each time like this?

vb’s picture

OK. I have already made beta11 with that fix.
This function is calling one time on the drupal page where activated hidden authentication block.
It is allowed way by phpbb team.
In beta10, 11 has been developed the new way of initialisation for fast execution, so something may be not compeletely tested.

fizk’s picture

Status: Active » Closed (fixed)