Cookie integration for wordpress
I made a plugin that allows you to change wordpress cookie path&domain (and even cookieHash) to suit the need of bbPress.
My configuration was not “simple” :
wordPress : http://www.2diabolos.com/blog
bbPress : forum.2diabolos.com
everything is explained here.
BUT I have a problem :
on my local server (for tests), I tried my plugin.
it works … for bbPress front-page and admin page, but not for topics and other “deeper” pages.
I put “cookie domain == false” (because cookie must not have domain when you are a “local server”, that what I understood from the standard)
I don’t understand why the frontpage appears nicely, and why, when I try to go into a topic, Firefox tells me that the server redirects the request in way that can’t go nowhere. And IE does not achieve anything (I prefer Firefox, it better for debugging…)
Firefox tells it can be a problem with cookie acceptance or desactivation.
I feel that bbPress is making a round (infinite) redirection ….
There’s an easier way to do this, just put in the right domain.
If you go with the first, in my opinion neater version, you also need to add this to bbPress’
//try to sync cookies
$bb->cookiedomain = '.2diabolos.com';
$bb->cookiepath = '/';
Then clear your cookies, log out and in and see if it works across your site.
on 2diabolos.com, everything is working fine. And actually, my wordpress plugin allow me to make what you propose (cookie_domaine = ‘.2diabolos.com’ and cookie_path = “/” for wordpress and bbPress)
But on “localhost” (my computer), cookie_domain = “false” and cookie_path = “/” works fine for the front-page, but not for topic pages … that’s not normal (to my opinion). But perhaps someone have an explanation ….
- You must be logged in to reply to this topic.