Welcome Guest Search | Active Topics | Sign In | Register

beforeRequestLoadEventArgs.Request.Cookies.count alway 0 Options
lsl
Posted: Saturday, September 17, 2016 1:00:19 AM
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
eo_support
Posted: Saturday, September 17, 2016 2:19:18 PM
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!
lsl
Posted: Saturday, September 17, 2016 11:15:39 PM
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!


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.