• Because the WordPress address and the site address are different, the logout function targets the WordPress address, and doesn’t log you out of the site.

    I have tried entering the site address manually with “https://executiveforumsct.com/wp-login.php?loggedout=true” and it successfully logs out the user.

    However, the logout button directs to “https://pivotpointgroup.net/wp-login.php?loggedout=true” and it sends you to a page to confirm, “You are attempting to log out of” and then sends you to the confirmation of the logout, but if you return to the site you are still logged in. It does successfully log out an administrator, because the admin logs into the old address (the WordPress address).

    Is there any way to manually switch the target of the logout to the new URL so that it successfully logs out? I’ve scoured google for this answer but haven’t found anything.

    Try it yourself– log in at https://executiveforumsct.com/register

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bripsch

    (@bripsch)

    Update: so I actually have to use the link https://executiveforumsct.com/wp-login.php?action=logout&_wpnonce=ac24f2000d

    to force to logout– I created this link by hitting ‘Logout’ which brought me to the confirmation page “You are attempting to log out of” and changing the active “https://pivotpointgroup.net/wp-login.php?action=logout&_wpnonce=ac24f2000d” –which contains the WordPress URL, to the one above, with the site URL.

    This creates a successful logout. I just don’t know how to target the link above with the ‘Logout’ button in the toolbar on the top of the screen– I thought it would find it automatically but that has not been the case.

    Thread Starter bripsch

    (@bripsch)

    Update 2: The link above doesn’t even work anymore to logout. In order to log out a user that signs up at the website (rather than one I create at the admin side) I need to delete the user or erase my cookies. I don’t know what’s happening here but It really seems to be a conflict because of a different site and WordPress URL.

    I am using SocialLogin and BuddyPress, but the issue persists even when these plugins are deactivated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflicting site and host URL causes logout failure’ is closed to new replies.