web下虚拟主机多站点的cookie写入失败的问题

WBOY
Release: 2016-06-06 20:30:35
Original
1072 people have browsed it

我的电脑上用虚拟主机和host配置了两个站点A和B,对应的url分别是www.a.com www.b.com,目录不同但是都在www路径下,目前出现了在ie中登录b时出现登录失败的情况,后检查发现是sessionid不能保存,继续跟踪发现是cookie丢失导致sessionid没有保存。那么请问ie下为什么cookie保存不了呢,chrome和Firefox是正常的

回复内容:

我的电脑上用虚拟主机和host配置了两个站点A和B,对应的url分别是www.a.com www.b.com,目录不同但是都在www路径下,目前出现了在ie中登录b时出现登录失败的情况,后检查发现是sessionid不能保存,继续跟踪发现是cookie丢失导致sessionid没有保存。那么请问ie下为什么cookie保存不了呢,chrome和Firefox是正常的

找到问题了,是ie下的cookie的domain不支持带下划线的~~~

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