title: Cookie doesn't work properly in webview in android
body: <p>Needed datas is not written to cookies immediately in WebView. But when I wait for 10-15 seconds everything is ok. 
  To explain the situation, this example would be good as for me:</p>
  
  <p>I open the app and login. After login, I close the app immediately. Then after  I open the app again, it shows me to logout. But if I open the app after 1 minute, it shows again as logged in. For me cookies are written lately. But I cannot find solution. Please help me if you know.</p>
  
  <p>I used CookieManager class but it doesn't help either.</p>
  
  <pre><code>CookieManager.getInstance().setAcceptCookie(true);
  </code></pre>