This is an ajax version of the force-logout issue. There is a version using fetch here.


In order to test this, please ensure that you are starting with a clean slate:


The test

  1. Check your current logged in status - results below. Should be false.
  2. Log in to https://sandbox.orcid.org/signin
  3. Check your current logged in status again - on my end, this is still false.
  4. Check your current status by explicitly looking at your profile at https://sandbox.orcid.org/my-orcid
  5. - this uses the ajax code from the ORCID GitHub repo.
  6. Check your current logged in status again - on my end, this is false.
  7. Check your current status by explicitly looking at your profile at https://sandbox.orcid.org/my-orcid

If, after running through this process, the page at https://sandbox.orcid.org/my-orcid allows you to edit the profile you are NOT logged out. This has been my experience.

The part I can't figure out is, why does visiting https://sandbox.orcid.org/userStatus.json?logUserOut=true in your browser actually log you out, but using javascript does not?

Test that assumption:


:: Diagnostics ::

Your loggedIn status: no test has been run