It really bothers me. Been for many years. No matter what I do with core.php or php.ini, the login timeout after about an hour is usually. Some deployments have identical code and timeout configurations after a decent amount of time.
This is what I have at the moment on one site - waiting time in about an hour:
session.gc_divisor 1000 session.gc_maxlifetime 86400 session.gc_probability 1 Configure::write('Session.timeout', '28800'); Configure::write('Session.checkAgent', false); Configure::write('Security.level', 'medium');
And the other - lasted all night:
session.gc_divisor 100 session.gc_maxlifetime 14400 session.gc_probability 0 Configure::write('Session.timeout', '315360000'); Configure::write('Session.checkAgent', false); Configure::write('Security.level', 'medium');
Now, before you get excited and say, βWell, the answer is Session.timeout,β let me tell you that this site usually expires in twenty minutes!
php timeout session cakephp
Leo
source share