The MU forums have moved to WordPress.org

WordPress Cookies (1 post)

  1. mouse8b
    Member
    Posted 18 years ago #

    I have been searching around the forums for about a week now, but I can't seem to find a definitive solution to my problem.

    I have a website which requires users to log in. I have a WordPress blog and a bbPress forum on the site as well. I followed the instructions on the bbPress site to integrate WordPress and bbPress, and it worked fine.

    Now I want to be able read the cookie on my main site. I have the cookie set to be accessible to the site root. The main problem is the hash on the end of the cookie. Since the hash is based on the site url, will it be the same all the time, letting me hard code the hash into my cookie reading code? Alternatively, could I remove the hash or even rename the cookie in wp-settings.php? I am not sure how the rest of the WordPress code reads the cookie, so I am not sure how much freedom I have editing my cookies.

About this Topic

  • Started 18 years ago by mouse8b