duanpi5733 2014-06-26 19:50
浏览 67
已采纳

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

Google Chrome doesn't seem to be saving my domain-wide session cookie.

My server is sending the following headers out:

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

But on subsequent requests the cookie is not being sent back out. If I try the same page in Internet Explorer is works just fine. Also if I change it from a domain-wide cookie to a sub-domain specific one it also works fine.

If I click on the page icon in the address bar and look at cookies set by this domain it shows none in either the allowed or blocked lists.


Here is some of my cookie config.

In .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"

In auto_header.php:

<?php
session_name('AuthID');
session_set_cookie_params(0,'/','.aerox.uk');
session_start();
?>
  • 写回答

1条回答 默认 最新

  • duanchouyi6730 2014-07-01 17:12
    关注

    After testing a few different versions and releases of Google Chrome it seems to be an issue with how releases prior to 36 treat .uk Second Level Domains (SLD).

    I've searched through the change logs and found that versions prior to version 36 use an old version of the public suffix list.

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架