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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Two browsers / same app ?

Post Reply
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Two browsers / same app ?

Post by thefunkyjoint »

Hello,

Is it possible to run in the same app, two instances of the navigator logged in different accounts in the same website ? If so, how ?

Thanks !
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Two browsers / same app ?

Post by salvadordf »

Hi,

Yes, you can create independent browsers if you use new "request contexts" when you call TChromium.CreateBrowser.

The MDIBrowser demo has all the code to do that 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.
thefunkyjoint
Posts: 513
Joined: Thu Aug 10, 2017 12:40 pm

Re: Two browsers / same app ?

Post by thefunkyjoint »

Very nice, thank you ! ;)
Post Reply