Rampage
Rampage

Reputation: 245

Cookies detail - name and data

when server responses with header Set-Cookie: ADS=SN=175A21EF. What does it mean? Do i have to save one cookie with name ADS containing data SN=175A21EF or are there two cookies ADS and SN containing data 175A21EF?

Thx for reply

Upvotes: 1

Views: 48

Answers (1)

khachik
khachik

Reputation: 28693

According to the specs (HTTP State Management Mechanism, HTTP, and the old RFC, superseded by 2965 - rfc 2109) it should be interpreted as "ADS" = "SN=175A21EF". There cannot be two cookies, a "Set-cookie" header can contain only one value and some another pre-defined key=value pairs separated by ;.

Upvotes: 1

Related Questions