I tried many options in config.php file but no success. Here the options. first one:
Configure::write('Session', array(
'defaults' => 'php',
'timeout' => 31556926, // The session will timeout after 30 minutes of inactivity
'cookieTimeout' => 31556926,
'ini' => array(
'session.gc_maxlifetime' => 31556926 // 36 hours
)
));
second one:
Configure::write('Session', array(
'defaults' => 'php',
'Session.timeout' => 36000
));
Please let me know, as session expires in middle of work!