bbP/WP integration – same userbase, but logging into 1 logs you out of the other
I’m running WP 2.7.1 and bbPress Version 1.0-rc-1 on
localhost. WP has been installed to
/3dd/and I installed bbPress to
/3dd/bbpress/today and have done all the proper steps for syncing in the bbPress admin.
I have added the following code to
require(BB_PATH . '../wp-blog-header.php');<br />
define('WP_AUTH_COOKIE_VERSION', 1);<br />
$bb->bb_xmlrpc_allow_user_switching = true;
I can login to both WP and bbPress with my WP user account (yay!), but <b>the problem is that WP doesn’t know when I logged in to bbPress and vice versa</b> (i.e. when I am logged into WP, bbPress still shows the login form). In addition, <b>when I login to bbPress, WP logs me out; and when I login to WP, I am no longer logged in on bbPress</b>. I have cleared my cookies many times and tried it in both IE and Firefox, same result.
Together, WP and bbPress create the following cookies (aside from the wp-settings and test cookies):
Domain Cookie name<br />
/3dd/ wordpress_logged_in_*<br />
/3dd/wp-admin wordpress_*<br />
/3dd/wp-content/plugins wordpress_*<br />
/3dd/bbpress/bb-admin wordpress_*<br />
/3dd/bbpress/bb-plugins wordpress_*<br />
/3dd/bbpress/my-plugins wordpress_*<br />
/3dd wordpress_logged_in_*<br />
I believe the last 4 are created by bbPress and it should be noted that there is no trailing slash on the wordpress_logged_in_* cookie path.
Does anyone know what the problem might be?
- You must be logged in to reply to this topic.