- Web Penetration Testing with Kali Linux(Third Edition)
- Gilberto Najera Gutierrez Juned Ahmed Ansari
- 155字
- 2021-06-24 18:44:53
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.
推薦閱讀
- 每天5分鐘玩轉Kubernetes
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Linux內核完全注釋(20周年版·第2版)
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- 嵌入式應用程序設計綜合教程(微課版)
- Linux性能優化
- SharePoint 2013 應用開發實戰
- 循序漸進學Docker
- Windows Server 2019 Administration Fundamentals
- 從實踐中學習Kali Linux無線網絡滲透測試
- 深入淺出Node.js
- Windows Vista終極技巧金典
- iOS 10快速開發:18天零基礎開發一個商業應用
- bash shell腳本編程經典實例(第2版)
- Zabbix監控系統之深度解析和實踐