Skip to:
Content
Pages
Categories
Search
Top
Bottom

cookie sharing between wp and bb

Viewing 12 replies - 1 through 12 (of 12 total)
  • i think i figured it out. just make sure that in your config.php in bbpress, you dont have slashes at the end of $bb->wp_home and $bb->wp_site_url

    Hi, dlevy

    I got the same problem as you, and I make sure there is no slashes at the end of $bb->wp_home and $bb->wp_site_url, do you have any idea about this? did you sort it out already? thanks!


    livibetter
    Member

    @livibetter

    @italways, was you installing WordPress and bbPress in this directory hierarchy:

    WordPress: /wordpress

    bbPress: /wordpress/bbpress

    Hi, livibetter

    Thanks for your reply! yes, I installed them as you said, and my WP is in the root directory.

    WP: http://mysite.com

    bbPress: http://mystie.com/forum

    When I logged in WP, then go to bbPress, it need sign again, actually, I can sign in with another different account in bbPress, and it won’t impact the account in WP, like they are absolutely in different cookie domain.

    Do you have any idea about this? thanks!


    livibetter
    Member

    @livibetter

    Are $bb->wp_home and $bb->wp_siteurl set as http://mysite.com?

    There is a setting can force bbPress to access specific cookie path (like /, that is what you need), but I don’t remember what it is. You can try to search for that.

    If you find that post, please also link to it in this topic.

    Hi, livibetter

    yes, $bb->wp_home and $bb->wp_siteurl set as http://mysite.com

    do you mean this link:

    http://bbpress.org/forums/topic/cookie-domain-settings?replies=4


    livibetter
    Member

    @livibetter

    yes.

    I think you only need

    $bb->cookiepath = '/';

    If this is not working, please check your browser’s cookies. See what WordPress and bbPress send to you with what host and path. If you not sure what to check, try to clean cookies, then log in WordPress and bbPress.

    Hi, livebetter

    Thanks for your reply!

    I added “$bb->cookiepath = ‘/’;” in the configure.php, but it does not make any difference, then I check my cookie, and find something interesting, when I logged in WP, it did not create any cookie at all, but when I logged bbpress, it creates cookie for mysite.com, probably that is the reason caused the problem, how do you think? thanks!


    livibetter
    Member

    @livibetter

    I think bbPress works normal, but WordPress may not. After you logging in WordPress, is that logging effective? Can you get into WordPress admin pages?

    Hi, livibetter

    Thanks! I have sorted it out, besides “$bb->cookiepath = ‘/’; “, I added the following in bbpress config.php

    $bb->path = ‘/bbpressfolder/’;

    $bb->usercookie = ‘wordpressuser’;

    $bb->passcookie = ‘wordpresspass’;

    It is strange that I still can not find any cookie file generated when I logged in WP but my WP works correctly, so weird… anyway, my problem is resolved, I am happy now:)

    doesn’t that just make it so anyone who goes to bbpress can work as you?

    No. Unlike '/bbpressfolder/' (I presume), 'wordpressuser' and 'wordpresspass' are not placeholders for your actual value: they are the literal values you will have there. Check your wordpress cookie; those are what they use. A part of the structure is:

    wordpressuser_site-unique hash=your username
    wordpresspass_site-unique hash=hash of your password

    With his settings, bb should now be using that too.

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.