yii主域名经过a连接到二级域名,二级域名就登录不成功

WBOY
Release: 2016-06-13 11:59:06
Original
991 people have browsed it

yii主域名通过a连接到二级域名,二级域名就登录不成功
yii做的一个网站,通过a连接到二级域名页面,登录不了 Yii::app()->user->isGuest 该方法验证未登录成功
------解决方案--------------------
很可能是cookie作用域的问题。修改 php.ini配置文件的cookie.domain项,例如您的域名是 hello.com。那么找到这项,修改成

<br />session.cookie_domain = .hello.com<br />
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template