1.0a2 + 2.6x cookies: so close!
-
It’s like trying to open the wrapper on a new CD you’re dying to listen to…if I can just get it open without using a hammer…
This is a thread. There are many threads like this thread. This thread is my thread.
Follow the cookie path please. Visit with the config file settings. See the pattern and you will bend the spoon. Then let me eat ice-cream with that spoon, please.
Paths:
WP: http://mydomain.org/
bbPress: http://mydomain.org/forum/
Apache version 1.3.41 (Unix)
PHP version 5.2.5
MySQL version 5.0.51a-community
Architecture i686
Operating system Linux
#########################################
bb-config.php:// URI’s
$bb->wp_siteurl = ‘http://mydomain.org’; // No trailing slash
$bb->wp_home = ‘http://mydomain.org’;
// Cookie Scope
$bb->cookiedomain = ”;
$bb->cookiepath = ”;
$bb->sitecookiepath = ”;
$bb->admin_cookie_path = ‘/forum/bb-admin’;
$bb->core_plugins_cookie_path = ‘/forum/bb-plugins’;
$bb->user_plugins_cookie_path = ‘/forum/my-plugins’;
$bb->wp_admin_cookie_path = ‘/wp-admin’;
$bb->wp_plugins_cookie_path = ‘/wp-content/plugins’;
// The name of the cookies
$bb->authcookie = ‘wordpress_blah3_blah5_blah8’;
$bb->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;
$bb->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;
define(‘BB_AUTH_KEY’, ‘ahhpushit’);
define(‘BB_SECURE_AUTH_KEY’, ‘pushpushit’);
define(‘BB_LOGGED_IN_KEY’, ‘realgood’);
define(‘BB_AUTH_SALT’, ‘andpepper’);
define(‘BB_LOGGED_IN_SALT’, ‘arehere’);
#########################################
wp-config.php:define(‘AUTH_KEY’, ‘ahhpushit’);
define(‘SECURE_AUTH_KEY’, ‘pushpushit’);
define(‘LOGGED_IN_KEY’, ‘realgood’);
define(‘AUTH_SALT’, ‘andpepper’);
define(‘LOGGED_IN_SALT’, ‘arehere’);
$wp->authcookie = ‘wordpress_blah3_blah5_blah8’;
$wp->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;
$wp->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;
// bbPress WP integration
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
#########################################
1)Clear all cookies
#########################################
2) Log into bbPress: (mydomain.org/forum/): role 'member':wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
#########################################
3) Visit WP site: (not logged in)wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
various 3rd party cookies from picasa etc
#########################################
4) Visit wp-login.php: (not logged in)wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
5) Log into wp-login.php as 'subscriber' user (same user as bbPress) which puts me /wp-admin/wordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
6) 'Visit site' from wp-adminwordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
7) Click on '//mySite.org/forum' link on main site (bbPress install dir)
Forum's first page displays: No extra cookies made. These cookies are from WP in the previous step:wordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
Log out from bbPress:wordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
STILL LOGGED INTO bbPress!
#########################################
9) Visit wp sitewordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
#########################################
10) Logout from WP site: (wp-login.php?loggedout=true)wordpress_test_cookie => /
PHPSESSID => /
#########################################
11) Visit forum site.
logged out.
#########################################
12) Clear all cookies
#########################################
13) Log into bbPress:wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
#########################################
14)Log out of bbPress:
All cookies cleared.
#########################################
15) Visit WP site + clear cookies.
#########################################
16) Log into WPwordpress_logged_in_URIHASH => /
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_test_cookie => /
PHPSESSID => /
#########################################
17) Visit bbPress site.
Already Logged in as wp user.wordpress_logged_in_URIHASH => /
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_test_cookie => /
PHPSESSID => /
#########################################
18) Logout from bbPress:wordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
Still logged in to bbPress!
#########################################
19) Logout from main site:wordpress_test_cookie => /
PHPSESSID => /
#########################################
20) Eat stapler.
- You must be logged in to reply to this topic.