In cakephp you can handle different session time outs for admin and front end users.I added the following lines in core.php file and it works for me.
if(strripos($_SERVER['REQUEST_URI'],"admin")) {
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => 1440,
'timeout' => 30,
'checkAgent' => false,
'autoRegenerate' => true,
));
}
else
{
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => 1440,
'timeout' => 20,
'checkAgent' => false,
'autoRegenerate' => true,
));
}
0 Comment(s)