If we click the Log out button from the Admin menu bar (Not 100% what its called ) it goes to this screen It should ideally go to the home page.
Can the default behaviour be changed? Edit: I got it. Add this in your functions.php file under your theme PHP: //Logout to home page custom codeadd_action('wp_logout',create_function('','wp_redirect(home_url());exit();'));
Ok a bug report now The logout on WP side doesn't really work since it does not log the sure out from XF. So when you are redirected to home page you get logged in again. Ideally if you click logout on their XF or WP you should be logged out of both places. Since both my WP and XF are on the same domain they should be able to delete each other's cookie. Will report back if successful. Edit 1: PS: SSO = Single sign on should also include a Single Sign off! Edit 2: I am sure I can delete the cookie for either but it won't invalidate the session from the server side. This will require more thought.
CountRock @xfrocks I have the latest version installed. Do you think its because of the password protected directory it isn't working? What happens now is that if I click the logout from the admin bar in WP it logs out and when the home page loads again it logs back in since it didn't logout from XF
Maybe, you can try with http://wordpress.xfrocks.com Blogs – Just another WordPress site blogs.daohoangson.com
CountRock @xfrocks I tried, you are correct if you logoff at WP it logs out in both places. However if you go to XF when log off in XF. It stays logged in WP. I have thought of a way to fix this also also perform another useful task Will update
xfrocks @CountRock That's correct. If you login in both sites and logout from master first, the slave will not know that fact and keep you logged in.
I got a work around for logout issue. Where you can log out of XF and WP from XF. I have installed a plugin in XF to redirect users on logout to the URL. The plugin's name Brivium - Redirect on Login/Logout Code: http://www.teamfiat.com/wp-login.php?action=logout Since WP has a nonce which prevents direct linking to the URL. you will have to edit and comment out the check_admin_referer line in wp-login.php PHP: case 'logout' : //check_admin_referer('log-out'); wp_logout(); And as stated about, add this in your functions.php file under your Wordpress theme PHP: //Logout to home page custom codeadd_action('wp_logout',create_function('','wp_redirect(home_url());exit();')); This kills 2 birds with the same stone. Since I wanted to redirect users to the WP anyway on logout!