aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/http/headers/set-cookie2/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/http/headers/set-cookie2/index.html')
-rw-r--r--files/pt-br/web/http/headers/set-cookie2/index.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/files/pt-br/web/http/headers/set-cookie2/index.html b/files/pt-br/web/http/headers/set-cookie2/index.html
new file mode 100644
index 0000000000..598e9cc3d4
--- /dev/null
+++ b/files/pt-br/web/http/headers/set-cookie2/index.html
@@ -0,0 +1,75 @@
+---
+title: Set-Cookie2
+slug: Web/HTTP/Headers/Set-Cookie2
+tags:
+ - Cookies
+ - HTTP
+ - Obsoleto
+ - Referencia
+ - cabeçalho
+translation_of: Web/HTTP/Headers/Set-Cookie2
+---
+<div>{{HTTPSidebar}} {{obsolete_header}}</div>
+
+<p>O obsoleto cabeçalho de resposta HTTP <strong><code>Set-Cookie2</code></strong> usado para enviar <em>cookies</em> do servidor para o agente de usuário, mas ele foi depreciado por especificação. Use {{HTTPHeader("Set-Cookie")}} ao invés disso.</p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">Tipo de cabeçalho</th>
+ <td>{{Glossary("Response header")}}</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("Forbidden header name")}}</th>
+ <td>não</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Sintaxe">Sintaxe</h2>
+
+<pre class="syntaxbox notranslate">Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Comment=&lt;value&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; CommentURL=&lt;http-url&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Discard
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Domain=&lt;domain-value&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Max-Age=&lt;non-zero-digit&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Path=&lt;path-value&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Port=&lt;port-number&gt;
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Secure
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Version=&lt;version-number&gt;
+
+// Múltiplas diretivas também são possíveis, por exemplo:
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;; Domain=&lt;domain-value&gt;; Secure
+
+// Múltiplos cookies são separados por vírgula
+Set-Cookie2: &lt;cookie-name&gt;=&lt;cookie-value&gt;, &lt;cookie-name&gt;=&lt;cookie-value&gt;, ...
+</pre>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Especificação</th>
+ <th scope="col">Título</th>
+ </tr>
+ <tr>
+ <td>{{RFC("2965", "Set-Cookie2")}}</td>
+ <td>Especificação histórica do Mecanismo de Gerenciamento de Estado do HTTP, obsoleto por {{RFC("6265")}} (<em>Historic specification of HTTP State Management Mechanism, obsoleted by</em> {{RFC("6265")}})</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_de_navegador">Compatibilidade de navegador</h2>
+
+<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+
+<p>{{Compat("http.headers.Set-Cookie2")}}</p>
+
+<h2 id="Veja_também">Veja também</h2>
+
+<ul>
+ <li>{{HTTPHeader("Set-Cookie")}}</li>
+ <li>{{domxref("Document.cookie")}}</li>
+</ul>