title: Set cookie in webview
body: <p>I have to set a cookie in a <code>WebView</code> in order to authenticate my user.
  I've found a lot a code talking about that, but <code>CookieSyncManager</code> is deprecated.</p>
  
  <p>And this code seems to not work :</p>
  
  <pre><code>CookieManager cookieManager = CookieManager.getInstance();
  cookieManager.setAcceptCookie(true);
  cookieManager.setCookie("my_url", "param=value;param=value;param=value");
  webview.getSettings().setJavaScriptEnabled(true);
  </code></pre>