         KeychainCredentialsManager.shared.username = nil
         KeychainCredentialsManager.shared.password = nil
         self.loggedInUsername = nil
+        self.loggedInURLs.removeAll()
         // Cookie reminders:
         //  - "HTTPCookieStorage.shared.removeCookies(since: Date.distantPast)" does NOT seem to work.
         HTTPCookieStorage.shared.cookies?.forEach { cookie in

     */
    @objc public var isLoggedIn: Bool {
        return (loggedInUsername != nil)
    }

    @objc public var hasKeychainCredentials: Bool {

        
        currentlyLoggedInUserFetcher.fetch(siteURL: siteURL, success: { result in
            self.loggedInUsername = result.name
            self.loggedInURLs.insert(siteURL)
            userAlreadyLoggedInHandler(result)
        }, failure:{ error in
            guard !(error is URLError) else {
                self.loggedInUsername = userName
                self.loggedInURLs.insert(siteURL)
                success(WMFAccountLoginResult(status: WMFAccountLoginResult.Status.offline, username: userName, message: nil))
                return
            }
            self.login(siteURL, username: userName, password: password, retypePassword: nil, oathToken: nil, captchaID: nil, captchaWord: nil, success: success, failure: { error in
                guard !(error is URLError) else {
                    self.loggedInUsername = userName
                    self.loggedInURLs.insert(siteURL)
                    success(WMFAccountLoginResult(status: WMFAccountLoginResult.Status.offline, username: userName, message: nil))
                    return
                }
                self.loggedInUsername = nil
                self.loggedInURLs.insert(siteURL)
                self.logout()
                failure(error)
            })
