This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Cookie
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Cookie HTTP 요청 헤더는Set-Cookie 헤더와 함께 서버에 의해 이전에 전송되어 저장된HTTP cookies를 포함합니다.
Cookie 헤더는 선택적(optional)이고, 만약 브라우저의 사생활 보호 설정(privacy settings)이 쿠키를 block할 경우 생략될 수도 있습니다.
| Header type | Request header |
|---|---|
| Forbidden header name | yes |
In this article
문법
Cookie: <cookie-list>Cookie: name=valueCookie: name=value; name2=value2; name3=value3
- <cookie-list>
<cookie-name>=<cookie-value>형태를 띄는 이름-값 쌍의 목록입니다. 목록 내 쌍들은 세미콜록과 공백('; ')으로 구분됩니다.
예제
Cookie: PHPSESSID=298zf09hf012fh2; csrftoken=u32t4o3tb3gg43; _gat=1;
명세
| Specification |
|---|
| HTTP State Management Mechanism> # cookie> |