The MU forums have moved to WordPress.org

Reusing cookies cross subdomains and vhosts (3 posts)

  1. mickemus
    Member
    Posted 16 years ago #

    I'm trying to integrate the following:

    WP2 standalone
    WPMU
    bbPress

    WP2 is on domain.com
    wpmu is on blog.domain.com
    bbpress is on blog.domain.com/forum

    I have successfully integrated the wp_users tables so there is a single sign on working! However, I'd really like to go that extra mile so users don't have to login when they cross over (spoooky)!

    I've realised that wpmu puts all cookies on blog.domain.com so how do I get either WP2 on domain.com to utilise these cookies (or vice versa)? Should I set the cookie path for WP2 at domain.com/blog or http://blog.domain.com??

    Appreciate any suggestions and help!!

  2. mickemus
    Member
    Posted 16 years ago #

    Someone ate my cookies?

  3. donncha
    Key Master
    Posted 16 years ago #

    Look at the COOKIE_DOMAIN stuff in wp-settings.php of WPMU and use the same setting in WP.

About this Topic

  • Started 16 years ago by mickemus
  • Latest reply from donncha