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.

Add/Edit cookies

Post Reply
User avatar
xpert13
Posts: 39
Joined: Wed May 31, 2017 5:26 pm

Add/Edit cookies

Post by xpert13 »

Hello.

I need to create 2 CEF application with cookies sync in runtime. Is there any method of CEF4Delphi to edit or add browser cookies? I know that I can change domain cookies with JS but may be it's possible to change all cookies?

Thank you.
User avatar
xpert13
Posts: 39
Joined: Wed May 31, 2017 5:26 pm

Re: Add/Edit cookies

Post by xpert13 »

I have found:

Code: Select all

TempCookieManager := TCefCookieManagerRef.Global(nil);
TempCookieManager.SetCookie(...);
Is it right?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Add/Edit cookies

Post by salvadordf »

I've never done that but I think that should be the way to do it.
Post Reply