blob: c1485dec4a0c4b1d08199a00ee0a63a1136746e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
---
title: Set-Cookie2
slug: Web/HTTP/Headers/Set-Cookie2
tags:
- Cookies
- HTTP
- Obsolete
- ヘッダー
- リファレンス
translation_of: Web/HTTP/Headers/Set-Cookie2
---
<p>{{HTTPSidebar}} {{obsolete_header}}</p>
<p>サーバーからユーザーエージェントにCookieを送信するために使用された古い <strong><code>Set-Cookie2</code></strong> HTTP レスポンスヘッダーですが、仕様で廃止されました。代わりに {{HTTPHeader("Set-Cookie")}} を使用してください。</p>
<table class="properties">
<tbody>
<tr>
<th scope="row">ヘッダータイプ</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>いいえ</td>
</tr>
</tbody>
</table>
<h2 id="構文">構文</h2>
<pre class="syntaxbox">Set-Cookie2: <cookie-name>=<cookie-value>
Set-Cookie2: <cookie-name>=<cookie-value>; Comment=<value>
Set-Cookie2: <cookie-name>=<cookie-value>; CommentURL=<http-url>
Set-Cookie2: <cookie-name>=<cookie-value>; Discard
Set-Cookie2: <cookie-name>=<cookie-value>; Domain=<domain-value>
Set-Cookie2: <cookie-name>=<cookie-value>; Max-Age=<non-zero-digit>
Set-Cookie2: <cookie-name>=<cookie-value>; Path=<path-value>
Set-Cookie2: <cookie-name>=<cookie-value>; Port=<port-number>
Set-Cookie2: <cookie-name>=<cookie-value>; Secure
Set-Cookie2: <cookie-name>=<cookie-value>; Version=<version-number>
// Multiple directives are also possible, for example:
Set-Cookie2: <cookie-name>=<cookie-value>; Domain=<domain-value>; Secure
// Multiple cookies are seperated by a comma
Set-Cookie2: <cookie-name>=<cookie-value>, <cookie-name>=<cookie-value>, ...
</pre>
<h2 id="仕様">仕様</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">仕様書</th>
<th scope="col">タイトル</th>
</tr>
<tr>
<td>{{RFC("2965", "Set-Cookie2")}}</td>
<td>Historic specification of HTTP State Management Mechanism, obsoleted by {{RFC("6265")}}</td>
</tr>
</tbody>
</table>
<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
<p>{{Compat("http.headers.Set-Cookie2")}}</p>
<h2 id="関連情報">関連情報</h2>
<ul>
<li>{{HTTPHeader("Set-Cookie")}}</li>
<li>{{domxref("Document.cookie")}}</li>
</ul>
|