Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: cookies (subtle bug?) single sign-on bbpress and wordpress


Nola1974
Participant

@nolageek

I’m not able to get this working in WPMU/bbpress:

Using newest versions of both (fresh install 3 days ago)

Site: http://geekdc.com

bbpress: http://geekdc.com/forum

bbpress config.php :

$bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
$bb->wp_home = 'http://geekdc.com'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
$bb->wp_siteurl = 'http://geekdc.com'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

//if ( isset( $bb->wp_table_prefix ) ){
$bb->usercookie = ‘wordpressuser’;
$bb->passcookie = ‘wordpresspass’;
$bb->cookiepath = '/';
$bb->cookiedomain = '.geekdc.com';
$bb->path='/forum/';
//}
/* Stop editing */

Stock WPMU wp-config.php

Using the following plugins on WPMU:

bbpress-integration.php

https://downloads.wordpress.org/plugin/bbpress-integration.0.74.zip

Using the following plugins on bbpress:

wordpress-integration

https://bbpress.org/plugins/topic/wordpress-integration/

display name

https://bbpress.org/plugins/topic/display-name/

Is there anything else I need to do?

When I first log in to WPMU I get the following cookies:

geekdc.com wordpress_test_cookie (content:’ WP+Cookie+check’)

geekdc.com wordpressuser (content username)

geekdc.com wordpresspass (content: hash)

I go to the forum, and I’m not logged in.

I log into bbpress and I get two more cookies, exactly the same execept for the expiration dates. The WPMU expires at the end of session. The wordpress expires in one week. I do not get another wordpress_test_cookie.

Skip to toolbar