android issues with cookies in webview
<p>hi i need open a website page which has cookies in it.</p>

<p>i have created an webview to open that page and before opening i am logging in the website and getting the cookie  but i am still landing in the login page of website.Following is my code</p>

<pre><code>    CookieSyncManager.createInstance(this); 
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
if (cookie != null) {
    cookieManager.removeSessionCookie();
    String cookieString = cookie.getName() + "=" + cookie.getValue() + "; domain=" + cookie.getDomain() ;
    cookieManager.setCookie(cookie.getDomain(), cookieString);
    CookieSyncManager.getInstance().sync();
}  

WebView webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);

webView.loadUrl(UserXMLInteraction.accountDetailsUrl);

webView.setWebViewClient(new MyWebViewClient());
</code></pre>

<p>Can someone help me figure out this problem.</p>

<p>Thanks</p>
