B2C - Cannot log out when using the Edge browser

Neil B 21 Reputation points
2020-10-14T13:41:14.333+00:00

During implementtion of the B2C logout process I used the Chrome browser and it was pretty much trouble free - I used the logout endpoint url as specified in the app registrations section in AAD B2C and added the post_logout_redirect_uri to the end of that, which was my app's home page. I also added the Logout URL to the app in B2C, and added code to clear all sessions and cookies when that url is requested. The whole logout process would end up at the login page, which was the expected behaviour.

I've since tested this in several different browsers, but there are issues with logging out when using IE11 and Edge (currently on v44). When attempting to logout, both browsers would request the logout endpoint, then the Logout URL would be requested, but when redirecting to the post_logout_redirect_uri it would just log me back in.

I managed to resolve the issue with IE11 by changing the post_logout_redirect_uri to another page, which clears all sessions and cookies again and then redirects to the home page. This seems unnecessary, but at least it worked.

Unfortunately the inclusion of the extra step has not solved the problem in Edge; it still logs me back in. It will only log me out once I close the browser.

I have seen several similar posts online about problems with logging out when using Edge, but I have yet to find a definitive answer. Can anyone help please?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,847 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.