W
whenshaw
Guest
The logout() function does not clear any existing catalog information that has already been loaded, which is global to the app and not tightly tied to the JSDOSession. Therefore, if you log out and then log back in and try to load the same catalog, you get the error that you are seeing. We have discussed, but have not yet implemented, adding a function to the JSDOSession to allow you to clear the catalog. However, I think in your case you could clear the catalog yourself by doing the following: progress.data.ServicesManager._services = []; progress.data.ServicesManager._resources = []; progress.data.ServicesManager._data = []; progress.data.ServicesManager._sessions = []; This should completely clear out the catalog, so if you call addCatalog() on the same catalog again, it will work. Note that after you clear the catalog, any JSDOs that the app still has will probably be unusable, so you will need to be sure to create new ones. --Wayne
Continue reading...
Continue reading...