Cookie attribute Details

Source: Internet
Author: User
Tags to domain

You can see the cookie information in the Resources tab in the Chrome console.

There may be a lot of cookie objects under a domain name.

name fields are the names of a cookie.

The Value field is one of the cookie values.

Domain field is the domain name that can access this cookie.

Non-top-level domain name, such as two-level domain name or three-level domain name, set the cookie domain can only be the top-level domain name or level two domain name or the level three domain name itself, cannot set Other level two domain name cookie, otherwise the cookie cannot generate.

The top-level domain can only be set to domain as the top-level domain name, cannot be set to level two domain name or level three domain name, otherwise cookies cannot be generated.

A two-level domain name can read a cookie that has domain as the top-level domain name or itself and cannot read other two-level domain domains. So if you want a cookie to be shared among multiple two-level domain names, you need to set domain as the top-level domain name, so that it can be in all two-level domain names or the value of the cookie.
The top-level domain can only get the cookie that domain is set as the top-level domain, and other domain settings are not available for level two domain names.

The Path field can be used to access the page paths of this cookie. For example, domain is Abc.com,path is/test, then only the/test path page can read this cookie.

Expires/max-age The field is time-out for this cookie. If the value is set to a time, then this cookie expires when this time is reached. If not set, the default value is session, meaning that the cookie will expire with the session. This cookie expires when the browser is closed ( not the Browser tab, but the entire browser ).

Size field for this cookie.

The HttpOnly property of the HTTP field cookie. If this property is true, only the information in the HTTP request header will be provided with this cookie, and this cookie cannot be accessed through Document.cookie.

Secure field settings Whether this cookie can be passed only over HTTPS

Cookie attribute Details

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.