![]() HttpBaseProtocolFilter myFilter = new HttpBaseProtocolFilter() ![]() For example, private void WebViewControl2_NavigationStarting(WebView sender, WebViewNavigationStartingEventArgs args) For what you consider about don't know in advance the domains to the cookies, you may get the current navigating Uri by the WebViewNavigationStartingEventArgs of NavigationStarting event handle. What is worse is that I don't know in advance the domains associated to the cookies, so I cannot do something like this:ĪFAIK, there isn't a method for clearing cache data except ClearTemporaryWebDataAsync, but the code snippet you provided does clear cookies. Is there anything in the API that might help me wipe out all the cookies for the WebView, or at least get a list of them so that then I can use DeleteCookie on each? HttpCookieCollection m圜ookieJar = cookieManager.GetCookies(new Uri("")) įoreach (HttpCookie cookie in m圜ookieJar) HttpCookieManager cookieManager = myFilter.CookieManager What is worse is that I don't know in advance the domains associated to the cookies, so I cannot do something like this: HttpBaseProtocolFilter myFilter = new HttpBaseProtocolFilter() ![]() I have tried using the clearTemporaryWebDataAsync to now avail. The WebView can be instantiated many times, and I have noticed that the cookies do not get cleared on multiple instantiations, which makes it a bit difficult for my workflow (say, for instance, a user has to log in using the WebView, then when re-instantiating, the old state will be there). ![]() I am currently developing an application for Windows Phone 10 using UWP, in which I need a WebView that will set up several cookies in the process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |