Jeff Sanders Technical Blog

I am a Microsoft employee that has worked on all aspects of the Web Stack for a long time. I hope these blogs are useful to you! Use this information at your own risk.


<< Go Back

Understanding The New Wininet Options Internet_suppress_cookie_persist And Internet_suppress_cookie_persist_reset

- 08 Jun 2009

These options are well documented.  Important notes:

These flags affect the process that you set this option from. 

You do not need to pass an InternetHandle (but no error if you do).

Sample code:

<font color=#0000ff size=2><font color=#0000ff size=2>bool</font></font> abRes = <font color=#0000ff size=2><font color=#0000ff size=2>false</font></font>; DWORD adOption = INTERNET\_SUPPRESS\_COOKIE_PERSIST; abRes= InternetSetOption(hInternet, INTERNET\_OPTION\_SUPPRESS_BEHAVIOR ,&adOption,<font color=#0000ff size=2><font color=#0000ff size=2>sizeof</font></font>(adOption)); adOption = INTERNET\_SUPPRESS\_COOKIE\_PERSIST\_RESET; abRes= InternetSetOption(hInternet, INTERNET\_OPTION\_SUPPRESS_BEHAVIOR ,&adOption,<font color=#0000ff size=2><font color=#0000ff size=2>sizeof</font></font>(adOption));

  << Go Back