问题
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