Discussions
Logout.asmx doesn't always work
over 4 years ago by Larry Allen
We have an integration deployed in several of our client's iMIS installations. Part of the integration's behavior is to log the user out of iMIS. We use javascript to do that, like this:
requestToken = jQuery("#__RequestVerificationToken").val();
jQuery.ajax({
method: "post",
url: this.membershipServiceUrl + "/Logout",
headers: { "RequestVerificationToken": requestToken }
})
.done(function (data) { // success
MemberPrimeSSO.logoutRedirect();
})
.fail(function (data) {
MemberPrimeSSO.logoutRedirect();
});
It works on some installations. On others the Login cookie is not deleted and the user remains logged in. I used the Chrome JS debugger to confirm that the code is taking the success path.
Are there additional requirements for the Logout method of the membership service?