cakePHP Session Timeout Logout Problem – Unexpected Logout and Session Break
Tuesday, May 5, 2009 14:51Posted in category cakePHP Interview Questions
No Comments
Please make the Security Level for Session ‘medium’ or ‘low’. Because ‘high’ Session timeout will break sessions of cakePHP in very short time.
Have look at the following code. APP -> CONFIG -> CORE.PHP
// Access the following code in APP -> CONFIG -> CORE.PHP
* 'high' Session timeout in 'Session.timeout' x 10
* 'medium' Session timeout in 'Session.timeout' x 100
* 'low' Session timeout in 'Session.timeout' x 300
*
* CakePHP session IDs are also regenerated between requests if
* 'Security.level' is set to 'high'.
*/
Configure::write('Security.level', 'medium');
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.


