William
2007-07-20 16:54:04 UTC
I am clearing cookies in the WinInet cookie cache by setting an expired
cookie with
InternetSetCookie, but if I don't include a path= parameter, then it clears
too many cookies.
If I have two cookies with the same name, but one is for /xxx and the other
is for /yyy
(I.E. the cookies were sent by the server with those as the paths.), and I
call:
InternetSetCookie(http://.../xxx/, <expired version of cookie c>) it
sometimes just
clears the /xxx cookie, and sometimes it clears both cookies. But if I
include a path=/xxx
it seems to work reliably, but that seems bizzare, and I am not sure if that
really works,
or if it just seemed to work the few times that I did it.
cookie with
InternetSetCookie, but if I don't include a path= parameter, then it clears
too many cookies.
If I have two cookies with the same name, but one is for /xxx and the other
is for /yyy
(I.E. the cookies were sent by the server with those as the paths.), and I
call:
InternetSetCookie(http://.../xxx/, <expired version of cookie c>) it
sometimes just
clears the /xxx cookie, and sometimes it clears both cookies. But if I
include a path=/xxx
it seems to work reliably, but that seems bizzare, and I am not sure if that
really works,
or if it just seemed to work the few times that I did it.