How to increase cakephp Auth component session expire time
Auth component shares Session class
For Cakephp3
At config/app.php we can set the timeout.
'Session' => [
'defaults' => 'php',
'timeout'=>24*60//in minutes
],
For Cakephp2
in your Config/core.php
Configure::write('Session', array(
'defaults' => 'php',
'timeout' => 31556926 //increase time in seconds
));
Auth component shares Session class. For CakePHP 3 you can set session timeout at config/app.php
like below:
'Session' => [
'defaults' => 'php',
'timeout' => 1440, /*24 hours*/
],