Page 1 of 1

Error when clicking "logout" after login session times out.

Posted: Fri Jan 12, 2018 10:18 am
by yo_marc
Hello Nagios Support,

Not a breaking problem, but wanted to mention this in case it requires a potential bugfix.

I am getting an error that I usually run into each morning when I go to log into my XI instances. If I had an open login session to an XI instance, and that session times out, I click the "Logout" button in the upper right corner of the screen. This generates the full-white-screen "NSP: Sorry Dave..." message. I usually have to trim the URL back in the browser to the ~nagiosxi/login.php level, and reload the page. (This is from something like login.php?logout?nsp=<long string of hex / session id>)

I only seem to experience the session timeouts when do the following: I access XI instances in my browser - put my laptop to sleep - wake it up ~14 hours later - then go to access my XI instances again.

I find hitting the Home button works best for XI instances without guest access enabled, as it quickly brings you to the Login page. (This is what I would expect to happen when hitting the Logout button...)

However, one XI instance has guest access and hitting the Home button logs me in as guest... where I then have to logout, then log back in again as myself so I can have my admin privileges. I had a complaint about this process from other XI admins.

If there is something I can do to work around this easier, please let me know...

Thanks!
-marc

Re: Error when clicking "logout" after login session times o

Posted: Fri Jan 12, 2018 12:50 pm
by npolovenko
Hello, @yo_marc. I was told by the Devs that this will be fixed in XI 5.5 version which is going to be released soon. In a meantime, you could increase the session expiration time in /etc/php.ini file. Change this line:

Code: Select all

session.gc_maxlifetime = 1440
The value is in seconds. The biggest value I've seen so far was 1 year. That should be more than enough.

Code: Select all

session.gc_maxlifetime = 31536000

Re: Error when clicking "logout" after login session times o

Posted: Fri Jan 12, 2018 5:25 pm
by yo_marc
NIce -- Glad to hear its in the works, and thanks for the workaround too!

Re: Error when clicking "logout" after login session times o

Posted: Mon Jan 15, 2018 10:09 am
by npolovenko
@yo_marc, Not a problem! I'll lock this thread but you could keep an eye on the changelog here:
https://assets.nagios.com/downloads/nag ... NGES-5.TXT