bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Cookies

(5 posts)
  • Started 2 years ago by salatti
  • Latest reply from mdawaffe
  • This topic is resolved
  1. I'm trying to get cookies integration with wordpress working, but after some failed attempts (I read the FAQs and searched on the forum) I can't figure out how to do this. My WordPress installation is at www.salatti.net while bbPress is at forum.salatti.net (so bbPress is not in a subdirectory of WP, but on a third level domain). What should I do?

    Thanks,
    Daniele

    Posted 2 years ago #
  2. In addition to editing bbPress' cookie information, you will have to edit WordPress':

    for both bbPress and WordPress
    the domain should be .salatti.net (note the first .)
    the path should be /

    So in bbPress' config.php:

    $bb->cookiedomain = '.salatti.net';
    $bb->cookiepath = '/';

    in WordPress' wp-config.php:
    define('COOKIE_DOMAIN', '.salatti.net');
    define('COOKIEPATH', '/');
    define('SITECOOKIEPATH', '/');

    Let us know how it works.

    Posted 2 years ago #
  3. It works good!! :)
    Thank you very much!!

    Posted 2 years ago #
  4. Hello, I was directed to this topic by mdawaffe [via http://bbpress.org/forums/topic/52?replies=23] and am having a bit of difficulty implementing this.

    On my site, I'm not using a subdomain, instead I have bbPress located in a seperate folder from my Wordpress installations ( localhost/wordpress and localhost/bbpress). I modified the code somewhat and it the problem hasn't subsided.

    Here's my modified code in bbPress's config.php:

    // Cookies, bbPress fix
    $bb->cookiedomain = 'localhost';
    $bb->cookiepath = '/';

    Thanks!

    Posted 2 years ago #
  5. cvanp,
    Have you also changed WordPress' cookies?

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.