Hi,
Scenario:
open two urls in two separate cef browser instances (e.g. bitbucket.com), And login to one of the page.
Problem:
They do not share the context, meaning if I login into one page, the other one does not get the logged in information.
Causes:
This happens when i am creating my own CefCookieManager, if i do not create it. everything remains fine.
//code snippet (Browser Creation)
CefRefPtr<CefRequestContext> requestContext = CefRequestContext::CreateContext(CefRequestContext::GetGlobalContext(), m_clientHandler);
CefBrowserHost::CreateBrowser(info, m_clientHandler, cefStartupUrl, browserSettings, requestContext);
//code snippet ClientHandler::GetCookieManager() //overriding CefRequestContextHandler::GetCookieManager()
return CefCookieManager::CreateManager(CefString("cookie_storage_path"), false, NULL); // => in this case context is not shared
//return NULL; // => everything works fine
i saw that internally CefCookieManager::CreateManager is doing something like this
CefRefPtr<CefCookieManagerImpl> cookie_manager = new CefCookieManagerImpl();
cookie_manager->Initialize(NULL, path, persist_session_cookies, callback); // => first parameter request_context is NULL
My Questions:
Is there a way to create CefCookieManager with the context?
Is there anyway that the context gets shared and i still use my own CefCookieManager not the global one?
or any other suggestions?
OS: Windows-7
CEF: CEF-2623
Regards,