I have a site running Drupal 6. When I log in to add new articles, it shows Current Anonymous / Authenticated Users.

How is this number computed?

  • I don't understand. Where is the number? – Jimmy Ko Dec 22 '16 at 11:09
  • Hi, in the upper right hand corner in Drupal 6 (authenticated mode) – user3236765 Dec 22 '16 at 11:49

Have a look at what's written in Comment nr 5 of issue nr 799262, ie:

Basically, the anonymous user count in Drupal core's "who's online" block counts how many sessions are stored in the database, minus the number of authenticated sessions.

If you haven't correctly configured PHP to periodically cleanup the active sessions, the table will continue to grow. I just cleaned one today with ~75,000 old anonymous sessions. This not only causes confusion in the who's online block, but also has a severe performance impact on your site if it's mildly busy.

This article shows you what you need to put in settings.php to ensure your anonymous sessions are being cleaned: https://techcommons.stanford.edu/topics/drupal/sessions-table-cleanup

  • Hi so what setting in the stanford site ensures anonymous sessions are being cleaned? Thanks – user3236765 Dec 24 '16 at 15:43
  • @user3236765 that's another (new) question. Why not creating a new question about that? And if you want add a link to this question? – Pierre.Vriens Dec 24 '16 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.