Open In App

HTTP headers | Cookie2

Improve
Improve
Like Article
Like
Save
Share
Report

The HTTP headers Cookie2 header is request type header it has been used to advise the server that the user agent understands “new-style” cookies, but this days this header is not using instead the use HTTP headers Cookie.

Syntax:

Cookie2: <cookie-list>

In case of single cookie syntax is as follow:

Cookie2: $Version="3"

In case of multiple cookies syntax is as follow:

Cookie2: name=value; name=value; name=value

Directives: This header accept a single directive mentioned above and described below:

  • <cookie-list>: It is the list of name=value pair separated by ; and space i.e ‘;’.

Example:

Cookie2: $Version="3"

Note: This header is not been in used these days. So there is no usage of this header nowadays so can’t manage live examples.

Supported Browsers: The browsers are not compatible with HTTP header Cookie2. The HTTP header Cokkie2 was replaced by the HTTP headers Cookie.


Last Updated : 11 May, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads