Incognito mode中使用的Cookie存储在内存中,不会写入硬盘(存疑)
When you browse privately, other people who use the device won't see your history. Chrome doesn't save your browsing history or information entered in forms. Cookies and site data are remembered while you're browsing, but deleted when you exit Incognito mode.
常见的Cookie存储位置
# 请求头 GET /profile HTTP/1.1 Host: example.com Cookie: session_id=abc123xyz; user_id=42 # 响应头 Set-Cookie: session_id=abc123xyz; HttpOnly; Path=/; Secure
HttpOnly Cookie 是一种 只能被服务器读取,JavaScript 无法访问的 Cookie。它是通过设置 HttpOnly 属性来实现的。