File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libs/SalesforceSDK/src/com/salesforce/androidsdk/app Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -829,9 +829,6 @@ open class SalesforceSDKManager protected constructor(
829829 */
830830 private fun startSwitcherActivityIfRequired () {
831831
832- // Clear cookies
833- CookieManager .getInstance().removeAllCookies(null )
834-
835832 /*
836833 * If the number of accounts remaining is 0, show the login page.
837834 *
@@ -1130,6 +1127,9 @@ open class SalesforceSDKManager protected constructor(
11301127 * @param showLoginPage When true, shows the login page
11311128 */
11321129 private fun notifyLogoutComplete (showLoginPage : Boolean , logoutReason : LogoutReason , userAccount : UserAccount ? ) {
1130+ // Clear cookies to ensure those used during previous log in will not be re-used to log the user in again.
1131+ CookieManager .getInstance().removeAllCookies(null )
1132+
11331133 EventsObservable .get().notifyEvent(LogoutComplete , logoutReason)
11341134 sendLogoutCompleteIntent(logoutReason, userAccount)
11351135 if (showLoginPage) {
You can’t perform that action at this time.
0 commit comments