或者是纯粹是MS开发人员提出的随机的事情(或许可以协助cookie的排序,调试或者某些东西..)作为文本与周期在其他字符串之前被列出)?
解决方法
Domain=domain
Optional. The Domain attribute specifies the domain for which the
cookie is valid. An explicitly specified domain must always start
with a dot.
http://www.w3.org/Protocols/rfc2109/rfc2109
该部分是4.2.2 Set-Cookie语法.我不知道sajoshi的帖子之前有一个点要求,所以我看了看,但似乎他是一半.如果有人给你一个更仔细的阅读,可以指出我错过的任何事情,请做.
更新
我在4.3.3节中找到了
The request-host is a FQDN (not IP address) and has the form HD,where D is the value of the Domain attribute,and H is a string that contains one or more dots.
(FQDN是完全合格的域名)
A Set-Cookie from request-host y.x.foo.com for Domain=.foo.com would be rejected,because H is y.x and contains a dot
和,
Set-Cookie from request-host x.foo.com for Domain=.foo.com would be accepted.
因此,如果Cookie域名以域名形式出现,似乎Cookie域至少需要两个点.但是,aspnet认证cookie不是这样做的,所以这只是一个点.