title: Windows Phone 8.1 (Windows Runtime): Clear cookies with Facebook and WebAuthenticationBroker
body: <p>I work on a Facebook login app on Windows Phone 8.1 (Windows Runtime), using WebAuthenticationBroker and the example seen at <a href="http://developer.nokia.com/community/wiki/Authentication_Using_Facebook,_Google_and_Microsoft_Account_in_Universal_Apps_Using_MVVM" rel="nofollow noreferrer" title="Windows Phone 8.1 WebAuthenticationBroker Implementation">Windows Phone 8.1 WebAuthenticationBroker Implementation</a>.</p>
  
  <p>It works well, I just want that, each time the user want to authorize an app, his previous logon entered values are empty, EVEN IF he checked earlier that he consented to allow the browser to remember his ids.</p>
  
  <p><img src="https://i.stack.imgur.com/pSp3z.png" alt="facebook login"></p>
  
  <p>I tried many ways, especially clearing cookies in that way:</p>
  
  <pre><code>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); 
  }
  </code></pre>
  
  <p>Putting the same uri of authentication in the "uri" string, but the var myCookieJar is empty.</p>
  
  <p>Also, I'm not sure we can access the cookies of the WebView, so, is there an other way to clear thoses datas ?</p>
  
  <p>Thanks,</p>
  
  <p>Gwen</p>