CakePHP sessions

Posted: February 9th, 2010 | Author: admin | Filed under: Javascript, PHP |

If you are developing an CakePHP application where ajax is mostly used. It is advisable that you set the following session configurations inside your core.php.

Configure::write('Session.timeout', '86400'); // expires in 30 days

Configure::write('Security.level', 'medium');

If your application calls more than one ajax request at the same time, it is recommended that you set your ajax requests to synchronous to prevent session regeneration id errors.



Leave a Reply