©
本文档使用
php.cn手册 发布
过时的
此功能已过时。虽然它可能在某些浏览器中仍然有效,但它的使用是不鼓励的,因为它可以在任何时候被删除。尽量避免使用它。
过时的Set-Cookie2
HTTP 响应标头用于从服务器向用户代理发送 cookie,但已被规范所弃用。Set-Cookie
改为使用。
Header type | Response header |
---|---|
Forbidden header name | no |
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 commaSet-Cookie2: <cookie-name>=<cookie-value>, <cookie-name>=<cookie-value>, ...
Specification | Title |
---|---|
RFC 2965: Set-Cookie2 | Historic specification of HTTP State Management Mechanism, obsoleted by RFC 6265 |
Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (No) | (No) | (No) | (No) | (No) | (No) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (No) | (No) | (No) | (No) | (No) | (No) | (No) |