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

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.
主站蜘蛛池模板: 高唐县| 睢宁县| 关岭| 柘荣县| 禄丰县| 泰州市| 颍上县| 蓬莱市| 西华县| 遂昌县| 定兴县| 兰溪市| 六盘水市| 五指山市| 洛宁县| 高尔夫| 平山县| 尼勒克县| 邮箱| 咸阳市| 临漳县| 河北区| 洱源县| 苍南县| 济源市| 浑源县| 赤水市| 仙居县| 深圳市| 竹山县| 永城市| 马边| 浠水县| 名山县| 房产| 大埔县| 化德县| 益阳市| 文昌市| 凤庆县| 交口县|