How can I set and delete cookies for a domain in webbrowser control without using Javascript (which doesn\'t allow to set / delete cookies without navigating to the webs
Here's a finer solution that only clears cookies (C/C++):
#include
#include
...
DWORD dwSuppress = INTERNET_SUPPRESS_COOKIE_PERSIST;
InternetSetOption(0, INTERNET_OPTION_SUPPRESS_BEHAVIOR, &dwSuppress, sizeof(DWORD));
All credits to this blog post (C#). Don't forget to check the documentation for InternetSetOption and INTERNET_SUPPRESS_COOKIE_PERSIST