title: Clearing Cookies In Xamarin iOS Build NHttpCookieStorage Not Clearing Cookies For WebView
body: <p>Working on an app that uses Xamarin WebView, to run authentication.  Trying to delete login info on user log out or cancel. Here is my code, mind the debugging that's going on.  I already checked that the shared storage is empty, but something is going on because user login is still cached.  After logging out, if the webpage is brought up again, the user is automatically signed in again.  The code is running, as I am getting debugger output.</p>
  <p>Code Snippet:
  '</p>
  <pre><code>public void Clear()
         {
          NSHttpCookieStorage CookieStorage = NSHttpCookieStorage.SharedStorage;
          foreach (var cookie in CookieStorage.Cookies)
          {
              Debug.WriteLine(cookie);
              CookieStorage.DeleteCookie(cookie);
              
          }
      }
  </code></pre>
  <p>`</p>
  <p>How I am Calling the Dependency Service
  <code>DependencyService.Get&lt;IClearCookies&gt;().Clear();</code></p>