Replies: 1 comment 1 reply
-
As per https://github.com/cefsharp/CefSharp/releases/tag/v81.3.100 changes are required when using a RequestContext. Please read #3111 (comment) You need to specify CefSettings.RootCachePath and ensure all RequestContextSettings.CachePath paths are children of RootCachePath. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we are using CefSharp.Forms and .WPF in our application. Users are allowed to open multiple browser instances and each instance has its own RequestContext. Thus cookies should be stored per-browser. This worked fine with CefSharp v79. Starting with CefSharp v81 cookies are stilled written to disk. But on next application start all cookies are gone again.
That's how we initialize the browser for WPF:
I uploaded a small repro project to https://drive.google.com/file/d/1RIoUsdYUaw1AUIsias9mOnP4TRhNDRhf/view?usp=sharing that will start two browsers. Each with its own RequestContext and CachePath.
Each and every time the application is started, Google will require to accept cookies. The selection is not stored.
When switching the same project back to CefSharp v79, the cookies will be correctly saved and Google only asks for acceptance of cookies a single time.
Is that a bug in CefSharp or are any code changes necessary to make it work in newer versions?
Best Regards,
Kevin
Beta Was this translation helpful? Give feedback.
All reactions