?
avatar Kostelano
Kostelano
23 Dec 2020

Steps to reproduce the issue

Just use the "User Status" module in the control panel for a while. Observe the number of administrators in the control panel.

Expected result

According to the module parameter:

MOD_STATUS_FIELD_SHOW_LOGGEDIN_USERS_ADMIN_DESC="Show the number of users logged-in to the Backend."
MOD_STATUS_FIELD_SHOW_LOGGEDIN_USERS_ADMIN_LABEL="Logged-in Backend Users"

I expect to see the actual number of admins at the moment.

Actual result

Administrator logins are summarized (presumably).
Clearing the browser cache, reducing the session time does not affect the indicator.

Screenshot_1

I have 2 super administrators on my site. Only they can log in to the control panel.

System information (as much as possible)

  • Joomla 3.9.23
  • PHP 7.3.25
avatar Kostelano Kostelano - open - 23 Dec 2020
avatar joomla-cms-bot joomla-cms-bot - change - 23 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Dec 2020
avatar Kostelano Kostelano - change - 23 Dec 2020
The description was changed
avatar Kostelano Kostelano - edited - 23 Dec 2020
avatar drmenzelit
drmenzelit - comment - 23 Dec 2020

I checked several websites and I can't reproduce the issue.
Do you have the problem in more than one website? Is your database ok? Check Extensions -> Database

avatar Kostelano
Kostelano - comment - 23 Dec 2020

The database is fine. The problem is reproduced on all sites.

I figured out the situation a little. So.

For convenience, in the general site settings, you can set the session time = 1 minute. Then log into the admin panel every 1.5 minutes (for example). In my case, the number of administrators increases, since every 1.5 minutes I enter my username / password.

The problem "goes away" as soon as we directly log out of the account, and not just close the tab. In this case, the number of administrators in the control panel is immediately "reset". Log in again - the number is correct (= 1 administrator, because we are now alone in the control panel). If we again do not LOG OUT from the account, but simply close the tab and re-authorize in the control panel after 1.5 minutes, the number of administrators will increase again.

I cannot say that this is a serious bug, but in my opinion the logic of the module's operation is incorrect. not all of them perform the EXIT from the control panel. More often they just close the tab. Accordingly, the meaning of this parameter with the current logic is questionable.

avatar ReLater
ReLater - comment - 23 Dec 2020

This is a reproducible and known issue on some Joomla sites. Try to adapt the settings in "System - Session Data Purge" to run the session cleanup more often!

avatar ReLater
ReLater - comment - 23 Dec 2020

Check also: Plugin "User - Joomla!" > "Force Logout for all Sessions?"

avatar Kostelano
Kostelano - comment - 23 Dec 2020

I'll play around with the probability / divisor parameter and give some feedback. But I'll tell you right away that there were default values (1/100).

As for the second question, all parameters are set to YES.

avatar ReLater
ReLater - comment - 23 Dec 2020

But I'll tell you right away that there were default values (1/100).

Which means: Run the session cleanup on 1% of page requests.

A 1/1 or 100/100 means: Run the session cleanup on every page request which can become a performance issue on larger sites with lots of users.

avatar Kostelano Kostelano - change - 23 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-23 17:14:38
Closed_By Kostelano
avatar Kostelano Kostelano - close - 23 Dec 2020
avatar Kostelano
Kostelano - comment - 23 Dec 2020

Yes, setting 1/1 completely solved the problem described above. The site is very simple and small, 1/1 is fine for it.

Considering that the problem is solved, I close it.
@ReLater, thanks for the help with the solution.

Add a Comment

Login with GitHub to post a comment