The CPANEL-12629 internal register is open to fix the problem with / scripts / clean _user_php_sessions, where sessions older than 24 minutes are always deleted on systems running EasyApache 3 (despite setting user-defined values ββfor session.gc_maxlifetime). I am updating this thread with additional information about the status of this case as it becomes available. In the meantime, a temporary workaround is to edit the following file:
the code:
/usr/local/cpanel/scripts/clean_user_php_sessions Within the file, change this entry:
the code:
else {my $ dirs = Cpanel :: PHPINI :: get_directives (['session.save_path', 'session.max_lifetime'], 1, '/ usr / local / lib'); clean_sessions ($ dirs β {'session.save_path'} {'value'}, $ dirs β {'sessions.max_lifetime'} {'value'}); }
return 1;
To:
the code:
else {my $ dirs = Cpanel :: PHPINI :: get_directives (['session.save_path', 'session.gc_maxlifetime'], 1, '/ usr / local / lib'); clean_sessions ($ dirs β {'session.save_path'} {'value'}, $ dirs β {'session.gc_maxlifetime'} {'value'}); }
return 1;
Then exclude this file from cPanel updates with the following command:
the code:
echo '/usr/local/cpanel/scripts/clean_user_php_sessions' >> /etc/cpanelsync.exclude
Remember to edit "/etc/cpanelsync.exclude" to remove this line as soon as we pulled the update to solve the problem.
Source: https://forums.cpanel.net/threads/php-session-timeout-since-64-0-update.598247/
source share