bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

cookie sharing between wp and bb

(13 posts)
  • Started 1 year ago by dlevy
  • Latest reply from fel64
  • This topic is not resolved

Tags:

  1. dlevy
    Member

    My bbpress folder is inside of my wp folder, but when I login to wp and then click on bbpress, i have to log in again. is there an easy fix?

    should i do what this topic says?

    http://bbpress.org/forums/topic/htaccesscookie-woes?replies=8

    Posted 1 year ago #
  2. dlevy
    Member

    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

    Posted 1 year ago #
  3. italways
    Member

    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!

    Posted 9 months ago #
  4. @italways, was you installing WordPress and bbPress in this directory hierarchy:
    WordPress: /wordpress
    bbPress: /wordpress/bbpress

    Posted 9 months ago #
  5. italways
    Member

    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!

    Posted 9 months ago #
  6. 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.

    Posted 9 months ago #
  7. italways
    Member

    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

    Posted 9 months ago #
  8. 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.

    Posted 9 months ago #
  9. italways
    Member

    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!

    Posted 9 months ago #
  10. 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?

    Posted 9 months ago #
  11. italways
    Member

    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:)

    Posted 9 months ago #
  12. doesn't that just make it so anyone who goes to bbpress can work as you?

    Posted 9 months ago #
  13. 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.

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.