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

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.
主站蜘蛛池模板: 武邑县| 泸水县| 华亭县| 华阴市| 惠水县| 栾川县| 灌阳县| 哈密市| 丘北县| 开阳县| 威远县| 万山特区| 图木舒克市| 乐亭县| 盱眙县| 洞口县| 来宾市| 新源县| 永定县| 五指山市| 招远市| 五原县| 中江县| 桃源县| 佛教| 卫辉市| 江北区| 永城市| 青河县| 遵义市| 元江| 镇江市| 大化| 兴国县| 调兵山市| 石屏县| 尚志市| 高邑县| 乌兰县| 郓城县| 奈曼旗|