         preferences.idToken.clear()
         preferences.accessToken.clear()
         processManager.authorizationFailureCount = 0
-        clearSessionCookie()
+        clearCookie(cookieName: "JSESSIONID")
+        clearCookie(cookieName: "LtpaToken2")
     }
     
     /**

        return false
    }
    
    private func clearSessionCookie() {
        let cookiesStorage = HTTPCookieStorage.shared
        if let cookies = cookiesStorage.cookies {
            let jSessionCookies = cookies.filter() {$0.name == "JSESSIONID"}
            for cookie in jSessionCookies {
                cookiesStorage.deleteCookie(cookie)
            }

        preferences.idToken.clear()
        preferences.accessToken.clear()
        processManager.authorizationFailureCount = 0
        clearCookie(cookieName: "JSESSIONID")
        clearCookie(cookieName: "LtpaToken2")
    }
    
    /**
