CakePHP Cookie/Session problems

前端 未结 4 1258
栀梦
栀梦 2020-12-05 10:43

I am having issues with my CakePHP application. This seems to be happenining only in IE, and only on certain computers. It is consistent on the computers where it is happeni

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 11:31

    Try adding the following to your core.php file:

    Configure::write('Session.checkAgent', false);
    Configure::write('Session.ini',array('session.cookie_secure' => false, 'session.referer_check' => false));
    

    These parameters should force the cookie to persist even through Google Chrome Frame. This will set both PHP and CakePHP's settings to allow cookies to persist over http and https.

提交回复
热议问题