Page 1 of 3

Session timeout after upgrade

Posted: Mon Oct 10, 2016 7:15 am
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

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 10:10 am
by avandemore
What is the output of egrep 'session.gc_maxlifetime|session.cookie_lifetime' /etc/php.ini?

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 10:54 am
by mendell
avandemore wrote:What is the output of egrep 'session.gc_maxlifetime|session.cookie_lifetime' /etc/php.ini?
session.gc_maxlifetime = 14400

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 11:12 am
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

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 11:30 am
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):

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 11:46 am
by avandemore
Does this happen across all browsers? Have you altered the default homepage (assuming this where you see the issue)?

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 11:49 am
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.

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 12:23 pm
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.

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 1:21 pm
by avandemore
What is the php version installed? On an RPM distro you can show the output of rpm -qa |grep php.

Re: Session timeout after upgrade

Posted: Mon Oct 10, 2016 1:28 pm
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