0
我设置了.htaccess将me.example.com重定向到example.com/fun/index.php。这个index.php有一个会话。当用户使用me.example.com/index.php时,该会话从未启用,但在example.com/fun/index.php上启用。使用PHP登录subdomain.example.com的会话
如何在me.example.com/index.php路径上启用会话。
出于某种原因,这是行不通 – X10nD 2012-01-29 06:56:01
不要忘记添加在session_start();在页面的头部,并尝试用您的子域替换字符串.example – Ashraf 2012-01-29 07:04:54
看看这里:http://stackoverflow.com/questions/4631803/php-multi-domain-sessions-ini-set-not -加工 – Ashraf 2012-01-29 07:06:07