Skip to:

Cookie integration for wordpress

  • thierryyyyyyy


    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 :

    bbPress :

    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 ….

Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s an easier way to do this, just put in the right domain.

    define('COOKIE_DOMAIN', '');


    define('COOKIE_DOMAIN', '');

    If you go with the first, in my opinion neater version, you also need to add this to bbPress’ config.php.

    //try to sync cookies
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';

    Then clear your cookies, log out and in and see if it works across your site.



    on, everything is working fine. And actually, my wordpress plugin allow me to make what you propose (cookie_domaine = ‘’ 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 ….

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar