CakePHP application automatically logs out within few seconds -
i have used cakephp in application. has weird problem. times user being automatically logged out after within few secs. how stop auto log out?
i have set below codes in app/config/core.php:
configure::write('session.timeout', '120'); configure::write('security.level', 'low');
the best way set session time out in app/config/core.php.
configure::write('session', array( 'defaults' => 'php', 'timeout' => 20,//20minutes 'autoregenerate' => true,//resets session on activity 'cookietimeout' => 1440 ));
Comments
Post a Comment