Welcome Guest Search | Active Topics | Sign In | Register

Exclusive Cookies and Headers for each web view Options
John
Posted: Tuesday, December 22, 2020 12:38:14 AM
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?
eo_support
Posted: Tuesday, December 22, 2020 10:08:26 AM
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.aspx

Thanks!
John
Posted: Wednesday, December 23, 2020 5:58:15 AM
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?
eo_support
Posted: Wednesday, December 23, 2020 7:10:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
That you can specify on a per request basis by handling WebView.BeforeRequestLoad.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.