How to store cookies in different CefRequestContext
Posted: Mon Jan 20, 2020 8:45 pm
In my application I need to open several browsers in different contexts but store cookies for each browser separately.
When closing the system and opening it again, I would like each browser to load its cookies and resume sessions automatically.
In the version of java-cef 3.2xxx there was something like this:
In the most current version of java-cef (78.2xxx) I couldn't find a way to get a custom CefCookieManager.
Could anyone help me on this issue?
When closing the system and opening it again, I would like each browser to load its cookies and resume sessions automatically.
In the version of java-cef 3.2xxx there was something like this:
cookieManager_ = CefCookieManager.createManager(cookiePath, false);
requestContext = CefRequestContext.createContext( new CefRequestContextHandlerAdapter() {
@Override
public CefCookieManager getCookieManager() {
return cookieManager_;
}
}
In the most current version of java-cef (78.2xxx) I couldn't find a way to get a custom CefCookieManager.
Could anyone help me on this issue?