2010年4月28日星期三

host cookie和domain cookie

依set-cookie中是否存在domain属性可以将cookie分为domain cookie和host cookie。

This item tells you whether the cookie is a host cookie or a domain cookie.

A host cookie is sent back, during subsequent visits, only to the server that set it. A server is a computer on the Internet. A web site resides on one or more servers.
host cookie在接下来的访问中,只向设置该cookie的服务器返回。server是互联网中的计算机。一个网站驻留在一个或多个服务器上。

A domain cookie is sent back to any site that's in the same domain as the site that set it. A site's domain is the part of its URL that contains the name of an organization, business, or school---such as netscape.com or washington.org.
domain cookie向和设置它的site在同一个域的任何site返回该cookie。一个site的域名是一个其url的一部分,包含组织、业务或学校的名称,如netscape.com或washington.org。

标签: ,


评论: 发表评论

订阅 博文评论 [Atom]





<< 主页

This page is powered by Blogger. Isn't yours?

订阅 博文 [Atom]