Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

How to disable automatic cookie saving

Post Reply
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to disable automatic cookie saving

Post by salvadordf »

Hi,

The CookieVisitor demo has the code to list and delete all the cookies. It can be easily modified to delete individual cookies by adding the right parameters to Chromium1.DeleteCookies.

If that's not enough you can try to create a new browser with independent cache and cookies using the MDIBrowser demo. Just check the "Create a new request context for new browsers" box and create a new child browser.

If you don't set a GlobalCEFApp.cache property then CEF will use "in-memory" cache and the cookies will not be stored on disk.
Post Reply