Home > Net >  Using CefSharp suddenly can't read any cookies, big help
Using CefSharp suddenly can't read any cookies, big help

Time:11-25

Last year when do use CefSharp still can get to the page cookies, then use the version of the 65
This year a new project, or use CefSharp, updated to 86, the same code to read cookies, and then couldn't read anything, check a lot of information, is full of all kinds of methods of reading cookies on the net, all useless, then I do the small project opened last year, found that also can not read anything, what's the matter? A face of meng ~ ~ now I suspect that is not a problem with the code? But what's the problem with the computer system?
Who have encountered such a thing? Pray god help!



Private void WebBrowser1_FrameLoadEnd (object sender, FrameLoadEndEventArgs e)
{
Var cookieManager=CefSharp. Cef. GetGlobalCookieManager ();
The BLL. CookieVisitor visitor=new BLL. CookieVisitor ();
The visitor. SendCookie +=visitor_SendCookie;
CookieManager. VisitAllCookies (visitor);
}
Private void visitor_SendCookie (CefSharp. Cookies obj)
{
Cookies +=obj. Value + Name + "=" + obj. "; ";
}

Code is probably the case, online search with a lot of money, didn't find other people have read not to come out

CodePudding user response:

The class of your own writing, you don't put the contents shown,
Who knows: how do you do?

CodePudding user response:

The estimate is very difficult to someone can help you, demand is small, we also not all-wise,
Proposals are submitted directly to making cef team isuuses

The cause of the individual may
1. CEF. The problem of the init
2. The rights and security of the reasons of the configuration

CodePudding user response:

reference 1st floor is nu month god reply:
written by your class, and you don't put the contents shown,
Who knows: how do you do?
code has been posted, reading cookies is not just a few words, and that a few words of code at last year's time you can also read properly, can not attend this year

CodePudding user response:

reference gaoranaa reply: 3/f
Quote: refer to 1st floor is nu month god reply:
class, you yourself wrote, you don't put the contents shown,
Who knows: how do you do?
code has been posted, reading cookies is not just a few words, and that a few words of code at last year's time you can also read properly, can not attend this year

I mean, need specific internal implementation,
If you refer to a third party library, only to their website to find the reason,

CodePudding user response:

Double update log, Cef interface often change
  •  Tags:  
  • C#
  • Related