[ZBX-9366] description for "Auto-logout (min 90 seconds)" is not very correct, especially after 2.0.1 Created: 2015 Mar 04  Updated: 2024 Apr 10  Resolved: 2018 Jan 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Documentation (D)
Affects Version/s: 2.0.14, 2.2.8, 2.4.4, 2.5.0
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: login, refresh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team C
Story Points: 0.2

 Description   

https://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew201

As starting from 2.0.1 zabbix frontend (on any menu) performs zabbix server reachability checks every 10 seconds - currently logged user will be always kept as logged in (lastaccess in sessions table will be refreshed).

Note that 10 seconds (cannot be configured by user) is less than 90 seconds (allowed minimum).

So the user profile option "Auto-logout (min 90 seconds)" will be sort of ignored till the browser is running/tabs opened.
It will be taken taken into account only after user browsed/tabs will be closed and reopened after Auto-logout period.

It's true when global config option "Show warning if Zabbix server is down" is enabled, which is true by default after installation.

Documentation has to be corrected for all versions starting from 2.0:
https://www.zabbix.com/documentation/2.0/manual/web_interface/user_profile

I'd change:
With this checkbox marked you will be logged out automatically, after the set amount of seconds (minimum 90 seconds).
to:
With this checkbox marked you will be logged out automatically, after the set amount of seconds (minimum 90 seconds).
It will not work in case when "Show warning if Zabbix server is down" global configuration option is enabled and zabbix frontend (any menu) is kept opened or when for example pages on Monitoring menu perform background information refreshes.



 Comments   
Comment by Oleksii Zagorskyi [ 2015 Mar 04 ]

(1) I believe we need also update description for "Refresh (in seconds)"
It affects only pages in Monitoring menu, except Dashboard page.

Change:
You can set how often the information in the pages will be refreshed.
to:
You can set how often the information in the pages will be refreshed on Monitoring menu, except a Dashboard page which uses its own refresh parameters for every widget.

martins-v Just wondering - have there been changes for this in recent versions or the behaviour is the same from 2.0 onward?

zalex_ua It's actual to 1.8 too. Just checked 1.8 and 2.0 again.

martins-v Thanks, I've added the info to https://www.zabbix.com/documentation/2.0/manual/web_interface/user_profile#configuration. Pls have a look.

zalex_ua Looks good, can be replicated to other versions.

martins-v Copied to other versions. RESOLVED.

zalex_ua CLOSED.

Comment by Oleksii Zagorskyi [ 2015 Mar 04 ]

Take into account that in duplicated ZBX-8051 richlv suggested an idea:

<richlv> can't we identify such "automated" frontend requests somehow and ignore them for 'last access' calculation ?

zalex_ua Richlv, what to with this ?
We cannot just ignore it. But reopening the ZBX-8051 or creating separate issue - I don't believe that they have any chances to be implemented in frontend code.
Most critical aspect (undocumented details of not obvious things) is fixed now and later even may be improved in ZBX-9370.
Can we close this issue ?

<richlv> it is quite clear that this behaviour is a bug, and users are complaining about it. it's good that we documented it, for now... but it must be fixed eventually (well, the best would have been figuring it out and not breaking auto-logout, but it's too late for that )

i'd suggest reopening ZBX-8051 and closing documentation issues when we are satisfied with the current docs

zalex_ua Done, thanks.
CLOSED.

Comment by Martins Valkovskis [ 2015 Mar 18 ]

Experimenting with it - currently it seems that auto-logout works only when closing browser. I wonder if there is any other case when it works. If not then the text could be:

"With this checkbox marked you will be logged out automatically, after the set amount of seconds (minimum 90 seconds), when the browser is closed."

zalex_ua My suggestion in issue description is better because it's technically more correct and describes more details.
And take into account ZBX-9370 I already mentioned.

martins-v Added in https://www.zabbix.com/documentation/2.0/manual/web_interface/user_profile. Please have a look, before copying it to other branches.

zalex_ua Perfect!
I think we could also resolve (1) and close this issue completely.
Not sure what to do with previous comment ....

martins-v Copied to 2.2, 2.4, 3.0 branches.
zalex_ua CLOSED.

Comment by Oleksii Zagorskyi [ 2015 Mar 24 ]

Issue documented and closed.

Comment by Ingus Vilnis [ 2016 Apr 24 ]

There are multiple documentation pages where the profile settings are described.
https://www.zabbix.com/documentation/3.0/manual/web_interface/user_profile
https://www.zabbix.com/documentation/3.0/manual/config/users_and_usergroups/user

Would be great to make them both consistent and list the full behavior and limitations in all pages.
Example.

Auto-login Enable if you want Zabbix to remember you and log you in automatically for 30 days. Browser cookies are used for this.
Auto-logout (min 90 seconds) With this checkbox marked you will be logged out automatically, after the set amount of seconds (minimum 90 seconds).
However, this option will not work if
  • the “Show warning if Zabbix server is down” global configuration option is enabled and Zabbix frontend is kept opened
  • Monitoring menu pages perform background information refreshes.
  • "Auto-login" (Remember me for 30 days) is checked.

martins-v Thanks for the suggestion, RESOLVED in 2.2, 3.0, 3.2, 3.4, 4.0.

Generated at Fri Apr 26 17:34:22 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.