The MU forums have moved to WordPress.org

cookie domain (4 posts)

  1. cathal
    Member
    Posted 15 years ago #

    Hi,

    How do you change the cookie domain value that wpmu includes with cookies set after login? Currently on my site the value is set to '.www.domain.tld' for my main blog and '.other.www.domain.tld' for a second blog. I'd like to remove 'www' altogether if possible. Any help greatly appreciated.

    C.

  2. jamescollins
    Member
    Posted 15 years ago #

    Hi cathal,

    As per this line of code, you can override the cookie domain by defining COOKIE_DOMAIN in wp-config.php.

    By default it should default to .sitename.com, (based on the domain value in the wp_site table).

    What domain do you have in the wp_site database table? I suspect you have http://www.domain.tld in there.

    What version of WPMU are you using?

    James

  3. cathal
    Member
    Posted 15 years ago #

    Hi James,

    That's correct. The entry for domain in wp_site is in the form 'www.domain.tld'. I fixed the problem by changing that entry and also the domain entry for my primary blog in wp_blogs to 'domain.tld'. Thanks for your help.

    regards,
    C.

  4. jamescollins
    Member
    Posted 15 years ago #

    No problems. Glad I could help.

About this Topic

  • Started 15 years ago by cathal
  • Latest reply from jamescollins