Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: WordPress/BBPress Single Sign On


horrorshow
Member

@horrorshow

Hi,

I am trying to integrate bbpress(0.8.3.1) with wordpress mu (1.3.3), and I am having some issues with cookies for login/logout.

I’ve tried setting this: (“MD5hash” replaced with my MD5)

$bb->usercookie = 'wordpressuser_MD5hash';
$bb->passcookie = 'wordpresspass_MD5hash';

However, that didn’t seem to synchronize login(meaning, if I am log into wp, go to bbpress and find myself already logged and vice versa)

Watching the cookies during the login/out process on WP MU, I found that the cookie names that WP MU uses are: “wordpresspass” and “wordpressuser”

So in config.php for bbpress, I used:

$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';

This works somewhat, let me explain:

This scenario works:

Log into WPMU, refresh bbpress page, I find myself already logged into bbpress.

Log out of WPMU, refresh bbpress page, I find myself logged out of bbpress.

Log into BBpress, refresh WPMU, I find myself logged into WPMU

This doesn’t work:

Log into BBpress, refresh WPMU (I find myself logged into WPMU) AND THEN when I try to log out from WPMU, I can’t log out.

I refresh BBpress page, and I am not logged out either.

If I log out from BBpress at this point, then I am logged out of WPMU as well.

I have a feeling it might be something with WPMU, but I thought I’d post here first since this is where I found all the information about the integration. Thanks for your help. I am appending my config.php relevant to the integration part.

$bb->wp_table_prefix = 'wp_';
$bb->wp_home = 'http://achillesblog.com';
$bb->wp_siteurl = 'http://achillesblog.com';
$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';
$bb->cookiepath = '/';

thanks for your help.

Skip to toolbar