CakePHP needs to set session for particular folders

吃可爱长大的小学妹 提交于 2020-01-14 04:23:30

问题


I am using CakePHP framework. And below is my problem. www.mysite.com is the main site and I've created 5-6 different demos of my original site with different colors and fonts.

So, if I am login in www.mysite.com/demo1 and then I open another demo www.mysite.com/demo2, it shows I'm logged in already.

Is there any way to set session folder wise?


回答1:


In core.php, few lines before EOF, says:

//Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts.
$prefix = 'myapp_';

Have you tried different prefix for each site?



来源:https://stackoverflow.com/questions/31530921/cakephp-needs-to-set-session-for-particular-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!