Loading cookie manually

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Loading cookie manually

Postby adverg » Mon Aug 24, 2020 6:01 am

Hello. My name is Adverg. I'm very new to CEF and have a question I could not answer myself by reading the https://magpcss.org/ceforum/apidocs3/ api docs.

I have a cookie that is stored in the two
Code: Select all
unsigned char* key = //...;
unsigned char* value = //...;

as a key and value. Does CEF API provide a way to load that in into the browser? Or is there a related workaround?

Thanks.
adverg
Newbie
 
Posts: 2
Joined: Mon Aug 24, 2020 5:54 am

Re: Loading cookie manually

Postby magreenblatt » Mon Aug 24, 2020 9:17 am

See CefCookieManager. You can get the cookie manager via browser->GetHost()->GetRequestContext()->GetCookieManager(nullptr).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 52 guests