Skip to main content

3. Overview (概述)

Cookie 机制允许服务器在客户端存储状态信息。服务器使用 Set-Cookie 头部发送 cookie, 客户端在后续请求中使用 Cookie 头部返回。

3.1. Examples (示例)

设置 cookie:

Set-Cookie: SID=31d4d96e407aad42; Path=/; Secure; HttpOnly

发送 cookie:

Cookie: SID=31d4d96e407aad42