From a9cdb893328e7ac4cdac306af46bd6251ca016cd Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 12 Oct 2012 14:35:56 +0000 Subject: [PATCH] Clear cookies created by authentication test git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2052 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 41ef5df6..a1638ab3 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -180,6 +180,8 @@ public abstract class ExchangeSession { // set private connection pool DavGatewayHttpClientFacade.createMultiThreadedHttpConnectionManager(httpClient); boolean isBasicAuthentication = isBasicAuthentication(httpClient, url); + // clear cookies created by authentication test + httpClient.getState().clearCookies(); // The user may have configured an OTP pre-auth username. It is processed // so early because OTP pre-auth may disappear in the Exchange LAN and this