Hello All,
I'm working on a Windows Store App (Target: Windows 8 & 8.1; Dev Environment: VS 2012, Windows 8.1) that communicates with an Exchange Server (office365) using EWS. I've got most of it figured out but I am facing an issue and am not sure how to go about fixing it.
Here's how the problem is created:
- Log in to exchange with user account XYZ through the App
- Change the password for user XYZ through OWA
- Fetch data from the exchange server through the App
The problem is that at 3, I am able to fetch data through the App even though the password has changed. I have verified that the password has, in fact, changed, by logging in through OWA (the old password does not work but the new one does).
I have tried
- restarting the app
- uninstalling the app before running it again
- restarting the dev machine before running the app again
- wait 15 minutes (It's now been 4 hours since I changed the password) before trying again
but I'm still able to fetch data from Exchange without specifying the new password. My guess is, the session is saved somewhere on the local machine and it does not get invalidated even when the password has changed. But I haven't been able to figure out where.
What's weird is that I see the same behavior in Outlook. Outlook is able to sync with the Exchange server without requiring me to enter the new password.
I'm trying to figure out how to get the App to stop communicating with the server when the password is changed. The solution does not have to be programmatic.
Any help will be greatly appreciated. Thanks in advance.