CakePHP需要为特定文件夹设置会话 [英] CakePHP needs to set session for particular folders
本文介绍了CakePHP需要为特定文件夹设置会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 CakePHP框架.下面是我的问题. www.mysite.com 是主要网站,我已经用不同的颜色和字体为原始网站创建了5-6个不同的演示.
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.
因此,如果我登录 www.mysite.com/demo1 ,然后打开另一个演示 www.mysite.com/demo2 ,则表明我在已经登录.
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?
推荐答案
在core.php中,EOF前几行显示:
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?
这篇关于CakePHP需要为特定文件夹设置会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文