HomeGuidesAPI ReferenceChangelogDiscussions
GuidesiMIS ProfessionaliMIS EnterpriseClient SupportLog In
Discussions

Discussions

Ask a Question
Back to All

Logout.asmx doesn't always work

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?

Contact us
Copyright © Advanced Solutions International, All rights reserved.