[原]Cookie domain 命名规则

A Set-Cookie2 from request-host y.x.foo.com for Domain=.foo.com would be rejected, because H is y.x and contains a dot. ...

A Set-Cookie2 from request-host x.foo.com for Domain=.foo.com would be accepted. ...

A Set-Cookie2 with Domain=.com or Domain=.com., will always be rejected, because there is no embedded dot. ...

A Set-Cookie2 with Domain=.com or Domain=.com., will always be rejected, because there is no embedded dot. ...

A Set-Cookie2 with Domain=ajax.com will be accepted, and the value for Domain will be taken to be .ajax.com, because a dot Set-Cookie2 with Domain=ajax.com will be accepted, and the value for Domain will be taken to be .ajax.com, because a dot gets prepended to the value. ...

 

http://www.rfc-ref.org/RFC-TEXTS/2965/kw-domain.html

posted @ 2012-09-18 18:12  雨知  阅读(1298)  评论(0编辑  收藏  举报