CakePHP Error: Unable to configure the session, setting session.auto_start failed

后端 未结 5 1999
再見小時候
再見小時候 2021-01-31 19:27

I\'m getting this error:

Error: [CakeSessionException] Unable to configure the session, setting session.auto_start failed.

I\'m using Cakephp 2.2.4.

5条回答
  •  广开言路
    2021-01-31 19:51

    As Andriy's answer says, you should upgrade CakePHP or downgrade PHP. However, if you don't want to or don't have the option to, you need to reconfigure your Cake session so that it uses standard PHP sessions rather than Cake's session.

    app/Config/core.php

    Configure::write('Session', array(
        'defaults' => 'cake', // You need to change the value of this to 'php'
        'timeout' => 120,
        'cookieTimeout' => 20160,
        'checkAgent' => false 
    ));
    

提交回复
热议问题