Setcookie does not work in Version (90.0.4430.212)

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.

Setcookie does not work in Version (90.0.4430.212)

Postby jcij » Thu Dec 02, 2021 7:58 pm

Here are my ways to Setcookie .
Method 1:
Code: Select all
CefRefPtr<CefCookieManager>manager = CefCookieManager::GetGlobalManager(nullptr);
CefPostTask(TID_IO, CefCreateClosureTask(base::Bind(base::IgnoreResult(&CefCookieManager::SetCookie), manager, url, cookie, callback)));

Method 2:
Code: Select all
CefRefPtr<CefWaitableEvent> event = CefWaitableEvent::CreateWaitableEvent(true, false);
bool result = manager->SetCookie(url, cookie, new CefSetCookieCallback(event));
event->Wait();


Both of the above can take effect on Version (76.0.3809.132),but not on Version (90.0.4430.212).
jcij
Newbie
 
Posts: 8
Joined: Tue Oct 12, 2021 3:39 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 35 guests