Session timeout after upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mendell
Posts: 13
Joined: Fri Nov 14, 2014 9:55 am

Session timeout after upgrade

Post by mendell »

I upgraded from 5.2.9 to 5.3 last week. I'm receiving 'Your session has timed out' after five minutes idle time on the GUI. Any idea what could be causing this quick timeout?

Thanks
Kyle
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Session timeout after upgrade

Post by avandemore »

What is the output of egrep 'session.gc_maxlifetime|session.cookie_lifetime' /etc/php.ini?
Previous Nagios employee
mendell
Posts: 13
Joined: Fri Nov 14, 2014 9:55 am

Re: Session timeout after upgrade

Post by mendell »

avandemore wrote:What is the output of egrep 'session.gc_maxlifetime|session.cookie_lifetime' /etc/php.ini?
session.gc_maxlifetime = 14400
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Session timeout after upgrade

Post by avandemore »

In an unaltered upgrade from 5.2.9 > 5.3.0 /etc/php.ini should contain this entry as well: session.cookie_lifetime = 0.

Do you have any idea what would have altered this file? Can you add the entry in and restart apache? #systemctl restart httpd; systemctl status httpd
Previous Nagios employee
mendell
Posts: 13
Joined: Fri Nov 14, 2014 9:55 am

Re: Session timeout after upgrade

Post by mendell »

avandemore wrote:In an unaltered upgrade from 5.2.9 > 5.3.0 /etc/php.ini should contain this entry as well: session.cookie_lifetime = 0.

Do you have any idea what would have altered this file? Can you add the entry in and restart apache? #systemctl restart httpd; systemctl status httpd
It has the entry, sorry, didn't post entire response. I increased the session.gc_maxlifetime setting in hopes of changing the timeout (though it is timing out after 5 minutes of idle time).

session.cookie_lifetime = 0
session.gc_maxlifetime = 14400
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Session timeout after upgrade

Post by avandemore »

Does this happen across all browsers? Have you altered the default homepage (assuming this where you see the issue)?
Previous Nagios employee
mendell
Posts: 13
Joined: Fri Nov 14, 2014 9:55 am

Re: Session timeout after upgrade

Post by mendell »

avandemore wrote:Does this happen across all browsers? Have you altered the default homepage (assuming this where you see the issue)?
Yes, we've tried different browsers. And with different users. We see the issue on any page we leave idle. We have not altered the default homepage.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Session timeout after upgrade

Post by avandemore »

This is puzzling. My best guess at this point is that something is out of sync regarding time. The easiest thing to do would simply be to reboot the server if it hasn't been done post-upgrade.

There are also some steps listed in this thread: Your session has timed out.Your session has timed out.

Please PM the profile.zip as detailed in the thread if a reboot fails to resolve the issue.
Previous Nagios employee
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Session timeout after upgrade

Post by avandemore »

What is the php version installed? On an RPM distro you can show the output of rpm -qa |grep php.
Previous Nagios employee
mendell
Posts: 13
Joined: Fri Nov 14, 2014 9:55 am

Re: Session timeout after upgrade

Post by mendell »

php-pgsql-5.1.6-45.el5_11
php-xml-5.1.6-45.el5_11
phpPgAdmin-5.0.4-1.el5
php-5.1.6-45.el5_11
php-pecl-ssh2-0.11.0-1.el5.rf
php-common-5.1.6-45.el5_11
php-gd-5.1.6-45.el5_11
php-snmp-5.1.6-45.el5_11
php-mbstring-5.1.6-45.el5_11
php-mcrypt-5.1.6-15.el5.centos.1
php-pdo-5.1.6-45.el5_11
php-mysql-5.1.6-45.el5_11
php-mssql-5.1.6-15.el5.centos.1
php-ldap-5.1.6-45.el5_11
php-pear-1.4.9-8.el5
php-cli-5.1.6-45.el5_11
php-odbc-5.1.6-45.el5_11
phpmyadmin-2.11.11.3-2.el5.rf
php-devel-5.1.6-45.el5_11
php-pecl-json-1.2.1-4.el5
Locked