How to save cookies in CefSharp

后端 未结 2 1365
-上瘾入骨i
-上瘾入骨i 2021-01-11 11:51

I\'m new to CefSharp. Last week i build my first little program with CefSharp in C#. It\'s a split screen program. In one split i loaded Tweetdeck. It works fine, but Tweetd

相关标签:
2条回答
  • 2021-01-11 12:03

    just on how to use it.

    public partial class MainWindow : Window
        {
            public MainWindow()
            {
                CefSharp.CefSettings settings = new CefSharp.CefSettings();
                settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\CEF"; 
               CefSharp.Cef.Initialize(settings);
    
                InitializeComponent();
                //webcontrol.BrowserSettings.ApplicationCache = CefSharp.CefState.Enabled;
    
            }
        }
    
    0 讨论(0)
  • 2021-01-11 12:23

    Set CefSettings.CachePath directory. Settings are passed to Cef.Initialize().

    0 讨论(0)
提交回复
热议问题