Cookie Hell: WPMU + BBPress = bloodshot eye balls
-
Ok… Let me start off by saying I’m not your “average” user seeking help. I’ve spent the last 2-3 hours combing this forum and trying almost every combination of cookie configurations and tweaking.
My site is setup like this:
domain.com/blog
domain.com/forum
This is what I have thus far:
In my bbpress config.php
$bb->cookiedomain = '.domain.com';
$bb->cookiepath = '/';
$bb->sitecookiepath = '/';In my wpmu wp-settings.php around line 245
if ( !defined('COOKIEPATH') )
define('COOKIEPATH', '/' );
if ( !defined('SITECOOKIEPATH') )
define('SITECOOKIEPATH', '/' );
if ( !defined('COOKIE_DOMAIN') )
//define('COOKIE_DOMAIN', '.' . $current_site->domain);
define('COOKIE_DOMAIN', '.domain.com');Of course I replaced “domain.com” with my actual domain.
The result is I get a total of 4 cookies when I login into both sites.
Both sets are identical except expiration. (I even edited the expiration date with no avail, apparently bbpress is a full year and day off)
the cookie properties look like this:
website name path secure expires value
bbpress
.domain.com wordpresspass / no Mar 03, 2008 long_hash
.domain.com wordpressuser / no Mar 03, 2008 test
wpmu
.domain.com wordpresspass / no Mar 04, 2007 long_hash (same as the other)
.domain.com wordpressuser / no Mar 04, 2007 testThe only difference is the expiration date. As you can see bbpress has an issue with the date.
Perhaps I need sleep, or I don’t understand how the cookies are supposed to work. But I’m beat.. I can’t battle it anymore tonight.
I’m going to go get some sleep. Perhaps I’ll be able to figure it out from a fresh approach.
Any suggestions would be greatly appreciated.
Thanks,
Steven
- You must be logged in to reply to this topic.