Browser is set to accept cookies and when I check the cookie on the client I can see it was added BUT I can't see the comment. So even though the cookie is added to the response for some reason the comment
Just to confirm...comment is null when I read it again.
Have to substitute "Kookies" for "Cookies" because of JavaRanch posting restriction. So to test this code change it back to "Cookies".
user, the Cookie attribute allows an origin server to document its
intended use of a cookie. The user can inspect the information to
decide whether to initiate or continue a session with this cookie.
If a Set-Cookie response header includes a Comment attribute, the
user agent should store that information in a human-readable form
with the cookie and should display the comment text as part of a
cookie inspection user interface.
When the client sends cookie information to the server:
The syntax for the header is:
cookie = "Cookie:" cookie-version
1*((";" | ",") cookie-value)
cookie-value = NAME "=" VALUE [";" path] [";" domain]
cookie-version = "$Version" "=" value
NAME = attr
VALUE = value
path = "$Path" "=" value
domain = "$Domain" "=" value
so - no return of the comment in the request header according to RFC2109