Ticket #941 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Cookie integration: extra slashes in bb

Reported by: fel64 Assigned to:
Priority: normal Milestone: 1.0-beta & XML-RPC
Component: integration Version: 1.0-beta (trunk)
Severity: normal Keywords:
Cc:

Description

Running Trunk and 2.6.1; the problem is new since upgrading from 0.9. User tables integrated, auth keys of all kinds are identical. Trying to set it up such that logging into WP logs you into bb and vice versa.

* Logging into WP does not log me into bb, but it does log me out of bb. * Logging into bb does not log me into WP, but it does log me out of WP.

Each has been repeatable. The only kind of cookies I've seen are wordpress_#some_hash# and wordpress_logged_in_#that_same_hash#.

I believe that this may be due to an unknown problem with my setup. bbPress is setup in a subdomain, forums.loinhead.net, while WP is set up on www.loinhead.net. bbPress automatically sets cookies for .loinhead.net. I have changed Wordpress' behaviour to do that by defining COOKIE_DOMAIN in its wp-config.

I have found one difference between the cookies set by wordpress and bbpress that is probably a mistake:

The WP-set cookie called wordpress_#some_long_hash# is set twice, once for /wordpress/wp-admin, and once for /wordpress/wp-content/plugins. The bb-set cookie called wordpress_#the_same_long_hash# is set five times, once for /wordpress/wp-admin/, and once for /wordpress/wp-content/plugins/, and three times for bb-specific folders.

I'm suspicious of the extra trailing slash.

Change History

09/09/08 05:02:55 changed by sambauers

  • milestone set to 1.0-beta & XML-RPC.

09/09/08 05:03:10 changed by sambauers

  • status changed from new to closed.
  • resolution set to fixed.

(In [1685]) Remove slashes from the end of cookie paths to be more like WordPress. May help some integration cases. Fixes #941