diff --git a/src/com/android/email/mail/store/WebDavStore.java b/src/com/android/email/mail/store/WebDavStore.java index 57cc40f5e..ee22c0892 100644 --- a/src/com/android/email/mail/store/WebDavStore.java +++ b/src/com/android/email/mail/store/WebDavStore.java @@ -684,7 +684,10 @@ public class WebDavStore extends Store { if (needAuth()) { if (!checkAuth()) { try { - CookieStore cookies = doAuthentication(this.mUsername, this.mPassword, this.mUrl); + CookieStore cookies = mHttpClient.getCookieStore(); + cookies.clear(); + mHttpClient.setCookieStore(cookies); + cookies = doAuthentication(this.mUsername, this.mPassword, this.mUrl); if (cookies != null) { this.mAuthenticated = true; this.mLastAuth = System.currentTimeMillis()/1000;