crj
2006-01-09 18:08:05 UTC
Can InternetGetCookie[Ex] be used to retrieve 'expires' data for a cookie?
I can (so it seems) set a cookie with InternetSetCookie, and specify an
expires value
but when I use InterGetCookie[Ex] on the same
URL, I don't see the expires value.
I am also confused by the InternetSetCookie API: some docs seem to use
NULL for the name, and
assume that the data section will specify the name -
InternetSetCookie("http://some.url.com", NULL, "a=b")
would set the cookie 'a' to the value 'b'. But
some docs seem to indicate that a name is needed ... what's the right
answer here?
If I do
InternetSetCookie("http://some.url.com", NULL, "a=b; expires = Thu,
31-Dec-2099 23:59:59 GMT")
then when I use InternetGetCookieEx to retrieve the cookie 'a' I don't see
the expires value at all.
What am I missing?
- chris
I can (so it seems) set a cookie with InternetSetCookie, and specify an
expires value
but when I use InterGetCookie[Ex] on the same
URL, I don't see the expires value.
I am also confused by the InternetSetCookie API: some docs seem to use
NULL for the name, and
assume that the data section will specify the name -
InternetSetCookie("http://some.url.com", NULL, "a=b")
would set the cookie 'a' to the value 'b'. But
some docs seem to indicate that a name is needed ... what's the right
answer here?
If I do
InternetSetCookie("http://some.url.com", NULL, "a=b; expires = Thu,
31-Dec-2099 23:59:59 GMT")
then when I use InternetGetCookieEx to retrieve the cookie 'a' I don't see
the expires value at all.
What am I missing?
- chris