Page 1 of 1

Add/Edit cookies

Posted: Wed Jun 20, 2018 3:58 pm
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.

Re: Add/Edit cookies

Posted: Wed Jun 20, 2018 4:48 pm
by xpert13
I have found:

Code: Select all

TempCookieManager := TCefCookieManagerRef.Global(nil);
TempCookieManager.SetCookie(...);
Is it right?

Re: Add/Edit cookies

Posted: Thu Jun 21, 2018 3:10 pm
by salvadordf
I've never done that but I think that should be the way to do it.