Replies: 2 comments 3 replies
-
As per https://github.com/cefsharp/CefSharp/releases/tag/v90.6.50 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I fixed the code, so now it looks like this, and lot of files appear in cachefolder, however authorization session is not maintained between browser disposal and further reinitialization. What I miss?
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Winforms Cefsharp browser. I need to store cache so that I could create browser, login to the website, surfe, dispose browser and finally recreate browser with the same cache/cookies (so don't need to login again). I also need to have isolated cookies/cache for each particular browser instance. So I use the following code:
` BrowserSettings browserSetting new BrowserSettings ();
Browser = new ChromiumWebBrowser();
(Browser as ChromiumWebBrowser).BrowserSettings = browserSetting;
RequestContextSettings requestContextSettings = new RequestContextSettings();
requestContextSettings.PersistSessionCookies = true;
requestContextSettings.PersistUserPreferences = true;
requestContextSettings.CachePath = @"C:\Users\User\Documents\temp";
However the cache folder remains empty. By the way, if I use Cef.initialize (so I`m not having the islolated cache), in this case cache is successfully saved to the specified folder. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions