In login process in zend, We store the user information in Zend_Auth, but it creates a problem, the problem is that if user does not make any activity till 15 minutes or more on that site then the user automatically becomes logout.
Please tell me, for which reason it occur.
$frontendOptions = array(
'automatic_serialization' => true,
'lifetime' => NULL
);
$backendOptions = array(
// 'cacheDir' => TMP_DIR . DS . 'cache' . DS . 'meta'
);
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
Is this code is responsible for such condition.
This is happens due to conflict as i have already face this problem.
if you are working on two projects and both are at same address means you are working on two projects and place both on same server then they create conflict.
To test it open both projects on same browser and login and make logout on any one and you will see that other has been also logout.
place them on different server this will not happens.