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

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.
主站蜘蛛池模板: 安西县| 小金县| 松原市| 碌曲县| 肥东县| 乐都县| 和林格尔县| 临泽县| 大同市| 铅山县| 武定县| 怀仁县| 奉化市| 新兴县| 黎平县| 修文县| 崇文区| 铁岭市| 永胜县| 喀喇| 乌海市| 方城县| 嘉义县| 调兵山市| 邢台市| 淄博市| 明光市| 龙泉市| 凤台县| 秀山| 龙海市| 苏尼特左旗| 安义县| 瓦房店市| 工布江达县| 南康市| 呈贡县| 赣榆县| 白银市| 襄樊市| 方正县|