谷歌Chrome似乎并没有拯救我的域范围内的会话cookie。
我的服务器正在发送以下标头:
HTTP/1.1 200 OK
Date: Thu, 26 Jun 2014 19:42:48 GMT
Server: Apache
Set-Cookie: AuthID=a0dbc62667968c7d3c47dd80068a8b76; path=/; domain=.aerox.uk
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 109
Keep-Alive: timeout=10, max=50
Connection: Keep-Alive
Content-Type: text/html但是,在随后的请求中,cookie不会被发送回。如果我尝试在中使用相同的页面,效果会很好。另外,如果我将它从一个域范围的cookie更改为一个特定于子域的cookie,它也可以正常工作。
如果我单击地址栏中的页面图标并查看此域设置的cookie,它将在允许列表或阻塞列表中都没有显示任何cookie。
这是我的一些cookie配置。
在.htaccess中
# PHP Settings
php_value session.cookie_domain ".aerox.uk"
php_value session.name "AuthID"
#php_flag session.auto_start 1
php_value auto_prepend_file "../auto_header.php"在auto_header.php中
<?php
session_name('AuthID');
session_set_cookie_params(0,'/','.aerox.uk');
session_start();
?>发布于 2014-07-01 17:12:06
在测试了Google的几个不同版本和版本之后,似乎出现了一个问题: 36岁之前发布的版本如何对待.uk二级域名(SLD)。
我搜索了更改日志,发现36版本之前的版本使用的是公共后缀列表的旧版本。
https://stackoverflow.com/questions/24439021
复制相似问题