J
jacksu
I have one application in two servers, two servers returns the same
cookie but with some elmenet in different order,
Set-cookie: a=abc; Path=/; Domain=.abc.com; Secure
another one is
Set-cookie: a=abc; Secure; Path=/ ;Domain=.abc.com
the later one will not be included in the Cookie list in the later
request. Does anyone knows whether the order of "secure" matter?
Thanks.
Here is the definition copied from RFC 2109.
set-cookie = "Set-Cookie:" cookies
cookies = 1#cookie
cookie = NAME "=" VALUE *(";" cookie-av)
NAME = attr
VALUE = value
cookie-av = "Comment" "=" value
| "Domain" "=" value
| "Max-Age" "=" value
| "Path" "=" value
| "Secure"
| "Version" "=" 1*DIGIT
cookie but with some elmenet in different order,
Set-cookie: a=abc; Path=/; Domain=.abc.com; Secure
another one is
Set-cookie: a=abc; Secure; Path=/ ;Domain=.abc.com
the later one will not be included in the Cookie list in the later
request. Does anyone knows whether the order of "secure" matter?
Thanks.
Here is the definition copied from RFC 2109.
set-cookie = "Set-Cookie:" cookies
cookies = 1#cookie
cookie = NAME "=" VALUE *(";" cookie-av)
NAME = attr
VALUE = value
cookie-av = "Comment" "=" value
| "Domain" "=" value
| "Max-Age" "=" value
| "Path" "=" value
| "Secure"
| "Version" "=" 1*DIGIT