Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct way to isolate cookies/users in Chromium embedded browser?

I have searched for days with no solution in sight.

I need multiple Chromium instances in one single application and each of this instance logins to the same site with different account (ex: outlook.com).

I tried this solution but there's no "OnGetCookieManager" event in DECF3 new version. Apparently there was a related bug and event onGetCookieManager was removed in the 1547 CEF3.

I tried this but it doesn't work too.

Is this really possible? How?

I'm using DCEF3 (revision: 0cc175e7a629) and Delphi XE3.

like image 545
Geziel Avatar asked Jan 30 '26 17:01

Geziel


1 Answers

Here's what CEF3 maintainer told me: "Cookies can be stored globally, per request context or something else entirely. It depends on whether you pass a CefRequestContext to CreateBrowser*() and what you return from CefRequestContextHandler::GetCookieManager."

I'm not entirely sure how CreateBrowser is exposed in Delphi (I only use the C++ API), but I can confirm that GetCookieManager still exists in trunk (as the only method of CefRequestContextHandler).

like image 154
Alexandre Pereira Nunes Avatar answered Feb 01 '26 08:02

Alexandre Pereira Nunes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!