域名范围的Cookie未在Chrome中保存.uk二级域名

时间:2014-06-26 19:50:01

标签: php apache google-chrome cookies session-cookies

谷歌浏览器似乎无法保存我的域范围内的会话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不会被发回。如果我在Internet Explorer中尝试相同的页面工作正常。此外,如果我将其从域范围的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();
?>

1 个答案:

答案 0 :(得分:0)

在测试了谷歌浏览器的几个不同版本和版本之后,对于36之前的版本如何处理.uk二级域名(SLD)似乎是一个问题。

我搜索了更改日志,发现版本36之前的版本使用旧版public suffix list

This is the change that fixes Chrome to allow .uk domains to work correctly

相关问题