Integration Woes
-
OK, I have sort of a weird problem that I am hoping I can get some help with.
I have multiple WP sites integrated with each other – 1 install on the root domain, and numerous installs on subdomains.
In order to integrate users and cookies to maintain a login valid across all the installs the Authentication Unique Keys section in my wp-config is set up like this:
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define(‘AUTH_KEY’, ‘mygeneratedkey’);
define(‘SECURE_AUTH_KEY’, ‘mygeneratedkey’);
define(‘LOGGED_IN_KEY’, ‘mygeneratedkey’);
define(‘NONCE_KEY’, ‘mygeneratedkey’);
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
As a result, I can’t find the salts needed in wp-admin/options.php as they are not listed. I’ve tried using the same settings in bbpress as above in the bb_config file (see below), but no love. I’ve also tried changing them to BB_%WHATEVER% which doesn’t seem to work either.
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define( ‘BB_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_LOGGED_IN_KEY’, ‘mygeneratedkey’ );
define( ‘BB_NONCE_KEY’, ‘mygeneratedkey’ );
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
All of the users can login to bbpress using the same username and password as on the wp sites, but the cookie integration doesn’t work, and again – I cant find the correlating values in wordpress.
Does anyone have any suggestions?
- You must be logged in to reply to this topic.