Windows Phone 8.1 (Windows Runtime): clear cookies with Facebook and WebAuthenticationBroker

I am working on a Facebook login application on Windows Phone 8.1 (Windows Runtime) using WebAuthenticationBroker and the example depicted on Windows Phone 8.1. WebAuthenticationBroker implementation .

It works well, I just want every time the user wants to authorize the application, his previous values ​​entered were empty, EVEN IF he had previously verified that he agreed to allow the browser to remember his identifiers.

facebook login

I tried many ways, especially by clearing cookies this way:

Windows.Web.Http.Filters.HttpBaseProtocolFilter myFilter = new Windows.Web.Http.Filters.HttpBaseProtocolFilter(); 
var cookieManager = myFilter.CookieManager; 
HttpCookieCollection myCookieJar = cookieManager.GetCookies(new Uri("uri")); 
foreach (HttpCookie cookie in myCookieJar) 
{ 
  cookieManager.DeleteCookie(cookie); 
}

Putting the same authentication uri in the string "uri", but var myCookieJar is empty.

, , WebView, ?

,

Gwen

+4

Source: https://habr.com/ru/post/1568761/


All Articles