bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

wpmu 1.5.1 + bbpress 0902 Login Cookie Solved!

(6 posts)
  • Started 3 months ago by sepidol
  • Latest reply from matjack1
  • This topic is resolved
  1. sepidol
    Member

    i just solved my login cookie issue after one night debugging...
    i found these things:
    - by default, wpmu generate auth_cookie as "wordpress", but bbpress generate as "wordpress_xxxxx(hash)"

    - wpmu not using "database secret" for cookie hashing, but it use the SECRET_SALT constant defined in the wp-config.php, bbpress using "database secret". so the cookie result will never be the same.

    you need to update your bb-config.php file to meet these situations.
    assumed you've successfully install wpmu + bbpress, then edit your bb-config.php and add these line:

    define('BB_SECRET_KEY', 'yourreallysecretkey');
    define('BB_SECRET_SALT', 'yourreallysecretsalt');

    $bb->authcookie = 'wordpress';
    $bb->cookiedomain = '.yourdomain.com';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '';

    and try to login... voila.. you can switch to bbpress and wpmu without re-login... :)

    good luck,

    --
    rh

    Posted 3 months ago #
  2. sepidol
    Member

    my mistake,
    make sure your BB_SECRET_KEY and BB_SECRET_SALT value on your bb-config.php are the same with SECRET_KEY and SECRET_SALT value on your wp-config.php

    cheers,

    --
    rh

    Posted 3 months ago #
  3. Actually, the bbPress secret can live in the database. But you are right that the WPMU one cannot, mostly for login compatibility between blogs within WPMU.

    Obviously you should choose your own secret and salt values, not the one's given above.

    Posted 3 months ago #
  4. Thanks for this. It fixed our issue with the login cookies.

    Posted 2 months ago #
  5. Thank you so, so much, sepidol! You've made my day! I've spent hours trawling the bbPress and WPMU forums for this...

    For what it's worth, my problem was the SECRET_SALT. I'd done everything else right, but each time I logged into either bb or wp I was logged out of the other 'cause of the cookie value being encrypted differently... I thought the salt may have been the problem, but I wasn't quite sure what it did. This is the first thread I've found which even mentions it!

    Thanks...
    Caesar

    Posted 1 month ago #
  6. matjack1
    Member

    thank you!!

    works also for me! :-P

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.