Monday, February 20, 2012

Cakephp & Smartyhost

I recently found out smartyhost.com.au doesn't play well with cake Sessions.

'Please verify that the current setting of session.save_path is correct'

A simple fix for this is to change the Sessions from php to cake


/app/config/core.php
 Configure::write('Session', array(
  'defaults' => 'cake'
 ));

This will force Cake to use the /app/tmp path for Sessions instead of the Session path defined in smartyhost servers.

No comments: