|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
In a multi-process (thread) manner, how is it possible to set Exclusive cookies and headers for each web view?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, I am not exactly sure what you meant by "exclusive" cookie. A single "cookie jar" is shared across all WebViews that belongs to the same Engine. So the only way to isolate the cookies is to use separate Engine object. See here for more details about working with Engine object: https://www.essentialobjects.com/doc/webbrowser/advanced/engine.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
OK, then I can add cookies with Engine.CookieManager.SetCookie. what about adding request headers?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
That you can specify on a per request basis by handling WebView.BeforeRequestLoad.
|
|