|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
webView1.BeforeRequestLoad += WebView1OnBeforeRequestLoad; var cookie = beforeRequestLoadEventArgs.Request.Cookies; Console.WriteLine(cookie.Count);//alway 0?..
q1: I want to modify the cookie of webview, how shoud i do? q2: can I clear cookie or cache separate ?
3q
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
BeforeRequestLoad is for you to add your own cookies. The cookies maintained by the browser engine is only loaded when BeforeSendHeaders event, however the request object is readonly in that event. This means you can not modify/override cookies. You can only add cookies (in BeforeRequestLoad event).
In the current version you can not clear cookies/cache separately either. We are looking to add that in that future though.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
eo_support wrote:Hi,
BeforeRequestLoad is for you to add your own cookies. The cookies maintained by the browser engine is only loaded when BeforeSendHeaders event, however the request object is readonly in that event. This means you can not modify/override cookies. You can only add cookies (in BeforeRequestLoad event).
In the current version you can not clear cookies/cache separately either. We are looking to add that in that future though.
Thanks! thank you for your response! I hope we can "CRUD" cookies on an engine level,this is a good feature!
|
|