ladydi711

Well-Known Member
Sep 4, 2001
140
6
318
Hi all,

I have a site that recently moved from a server running WHM 11.32.6 (build 18) to a new server running WHM 11.38.1 (build 15)

On the old server, there is an .htaccess file that includes:
php_value session.gc_maxlifetime 28800

After the move to the new server, the sessions are getting timed out at what seems to be the php.ini default of 1440, while on the old server it was honoring the 28800.

Oddly, a phpinfo() shows the local value 28800 and master value of 1440.

Am I missing some configuration somewhere on the new server?

TIA,
Diane
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Are you using the same PHP handler on the destination server that is used on the source server?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
It's possible the issue is with your individual script if the sessions are timing out and the phpinfo data for the account shows the correct local value. Is the version of PHP installed the same as well? Is this happening with multiple scripts on multiple accounts or is it isolated to a single application on one account?

Thank you.
 

ladydi711

Well-Known Member
Sep 4, 2001
140
6
318
It is occurring on one application on one account (that I've been made aware of). The application script hasn't changed; I just did a WHM account transfer. The php versions are different 5.2.17 to 5.3.22. I have not seen any php error messages.

Thanks again for your assistance!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
It's possible this is related to the script's behavior with the newer version of PHP. You may want to consult with the script developer to see if a newer version is available, or if there are any known issues with it's use of sessions on PHP 5.3.

Thank you.