官术网_书友最值得收藏!

Cookie parameters

In addition to the name and value of the cookie, there are several other parameters set by the web server that defines the reach and availability of the cookie, as shown in the following response header:

The following are details of some of the parameters:

  • Domain: This specifies the domain to which the cookie would be sent.
  • Path: To lock down the cookie further, the Path parameter can be specified. If the domain specified is email.com and the path is set to /mail, the cookie would only be sent to the pages inside email.com/mail.
  • HttpOnly: This is a parameter that is set to mitigate the risk posed by Cross-site Scripting (XSS) attacks, as JavaScript won't be able to access the cookie.
  • Secure: If this is set, the cookie must only be sent over secure communication channels, namely SSL and TLS.
  • Expires: The cookie will be stored until the time specified in this parameter.
主站蜘蛛池模板: 盐津县| 东辽县| 盐源县| 和平区| 石柱| 汶上县| 遂平县| 遂昌县| 北票市| 夏邑县| 临漳县| 阳泉市| 六枝特区| 河南省| 鄂尔多斯市| 平湖市| 台前县| 华阴市| 兰西县| 连州市| 厦门市| 三穗县| 高碑店市| 莱芜市| 大宁县| 丹江口市| 龙胜| 平遥县| 五河县| 内江市| SHOW| 淮北市| 盘山县| 平南县| 察雅县| 八宿县| 宣恩县| 武鸣县| 阳信县| 柳林县| 南京市|