I have an offline/linking HealthVault application that is working perfectly fine except when disconnecting/unlinking the user. In order for the code below (which actually does remove the authorization) I must close the browser and log back in to the
patient facing web app and click on link again. If I don't close the browser and click to link the App again it will not take me to the HealthVault shell and just appear like the user has authorized the app.
// Establish the offline connection with only the person ID parameter
offlineConn = new OfflineWebApplicationConnection(person);
// Remove the authorization
PersonInfo personInfo_offline = offlineConn.GetPersonInfo();
// Code to remove record from DB
I have not much discussion on this topic and would appreciate if someone has the answer. It may well be a caching issue or possibly I am missing code on the Page_Load.