Page 1 of 1

Re: How to Isolate browser cookies?

Posted: Thu Jan 24, 2019 2:11 pm
by salvadordf
Hi Gustavo,

You need to create a new "request context" for each tab.

The MDIBrowser demo can do that for each child form as you can see here :
https://github.com/salvadordf/CEF4Delph ... m.pas#L201

Use the first parameter in TCefRequestContextRef.New to set a different cache directory for each browser.

You would have to copy that code to the TMainForm.AddTabBtnClick procedure in the TabbedBrowser demo, before the TChromium.CreateBrowser call.