Separate proxies for browsers with one cache

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Separate proxies for browsers with one cache

Postby royalgost » Sat Aug 31, 2019 5:14 am

Hello! I have 3 browsers in the project. I need to make every browser have the ability to work with different proxies. I created a new RequestContext for each browser. Browsers open under different proxies, but cookies, cache, etc. are not transmitted between them. We read a lot of information on the Internet, but did not find a solution. Help me please!

CEF Initialization Settings
Code: Select all
var settings = new CefSettings()
            {
                CachePath = CachePath,
                LogFile = CachePath,
                LogSeverity = LogSeverity.Disable,
                AcceptLanguageList = "en-US",
                IgnoreCertificateErrors = true,
                PersistSessionCookies = true,
                UserAgent = userAgent ?? "Mozilla/5.0 (Linux; Android 7.1.1; ASUS_X00ID Build/NMF26F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36"
            };


Browser Settings on Opening
Code: Select all
        public BookmakerAuthWindow(string reference, string bookmaker, bool isAuth)
        {
            InitializeComponent();
            var requestContextSettings = new RequestContextSettings { CachePath = CefSharpHelper.CachePath + @"\Browser" };
            browser.RequestContext = new RequestContext(requestContextSettings);
            browser.JavascriptObjectRepository.Register("CallbackService", new CallbackService(), true);
            InitializationComponents(reference, bookmaker, isAuth);
        }


With these settings, they use the same cache but the proxies are the same for everyone. I need the cache to be one for all and different proxies.
I am using WPF.
royalgost
Newbie
 
Posts: 2
Joined: Sat Aug 31, 2019 5:11 am

Re: Separate proxies for browsers with one cache

Postby magreenblatt » Sat Aug 31, 2019 10:26 am

Separate proxies with same cache is not supported.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Separate proxies for browsers with one cache

Postby royalgost » Thu Sep 12, 2019 5:07 am

Is it planned to implement such functionality? We are now faced with such a need on the project that 1 cache worked on 3 different windows. Perhaps there are other solutions? Can you tell me? Thank you in advance!
royalgost
Newbie
 
Posts: 2
Joined: Sat Aug 31, 2019 5:11 am

Re: Separate proxies for browsers with one cache

Postby magreenblatt » Thu Sep 12, 2019 9:09 am

There are no plans to add support.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: Google [Bot] and 24 guests