Using WinINet
InternetGetCookie
and InternetSetCookie
functions, it's pretty straightforward to get and set cookie inside the application which makes a web request through WinINet
.
However, I could not so far find a way to clear cookie.
Calling InternetSetCookie
with blank data (either L""
or NULL
) does not help (tried both with and without specifying the cookie name).
Tried FindFirst/NextUrlCacheGroup
, DeleteUrlCacheGroup
, and also FindFirst/NextUrlCacheEntry
, DeleteUrlCacheEntry
combinations. Still no luck.
Any ideas?