Users Can't logout of woocommerce, but it does log them out of wordpress

Hi,
Basically any account on any of our sites (multisite network running either X or Pro) can’t log out of woocommerce.
When they try, it results in a redirect with “something went wrong” and a logout button that when clicked redirects back to the my account page. It kind of works because that user is then logged out of wordpress and if that user is an admin, must sign in again to see the backend, however on the front end the user is still logged in -> therefore just in woocommerce.

I’ve tried deactivating all Plugins to look for a conflict and that resulted in no change. I’ve flushed the permalinks and remade the my-account page. Again nothing. Then I added some code via the functions php (we have child themes) to add an extra logout button to the menu which results in the same issue as the button in the account page.

I am completely baffled.

So it turns out it’s a conflict with some multisite settings in the htaccess file to do with sunrise.php and cookies for sign in. I’ll keep this thread updated if i find a solution, for anyone else looking for similar issues.

Sure, please let us know and thanks for sharing :wink:

Could be related to session and session sharing across URLs. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.