From ee3b1c87e3c8e72ca130943eed260ad642246581 Mon Sep 17 00:00:00 2001 From: Artyom Liou <10079456+artyomliou@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:32:53 +0800 Subject: Initial /web/http/headers/cookie, zh-TW (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * web/http/headers/cookie (zh-TW translation) * fix: commit錯檔案 --- files/zh-tw/web/http/headers/cookie/index.html | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 files/zh-tw/web/http/headers/cookie/index.html (limited to 'files/zh-tw') diff --git a/files/zh-tw/web/http/headers/cookie/index.html b/files/zh-tw/web/http/headers/cookie/index.html new file mode 100644 index 0000000000..596e273a54 --- /dev/null +++ b/files/zh-tw/web/http/headers/cookie/index.html @@ -0,0 +1,73 @@ +--- +title: Cookie +slug: Web/HTTP/Headers/Cookie +tags: + - Cookies + - HTTP + - Reference + - header + - request +--- +
{{HTTPSidebar}}
+ +

Cookie 是 HTTP 請求標頭,它的值包含由伺服器設定的 HTTP cookies (透過 {{HTTPHeader("Set-Cookie")}} 標頭設定,或者透過 Javascript 的 {{domxref("Document.cookie")}} 設定)。

+ +

Cookie 標頭不是必要的,比如瀏覽器可能會因為隱私設定而直接省略 Cookie 不傳。

+ + + + + + + + + + + + +
Header type{{Glossary("Request header")}}
{{Glossary("Forbidden header name")}}yes
+ +

Syntax

+ +
Cookie: <cookie-list>
+Cookie: name=value
+Cookie: name=value; name2=value2; name3=value3
+ +
+
<cookie-list>
+
一連串名值對(name-value pair),格式為: <cookie-name>=<cookie-value>。每對之間由一個分號與一個空白分隔('; ')。
+
+ +

範例

+ +
Cookie: PHPSESSID=298zf09hf012fh2; csrftoken=u32t4o3tb3gg43; _gat=1
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationTitle
{{RFC("6265", "Cookie", "5.4")}}HTTP State Management Mechanism
+ +

Browser compatibility

+ + + +

{{Compat("http.headers.Cookie")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf