The MU forums have moved to WordPress.org

Cookies - A tip (5 posts)

  1. paulcam
    Member
    Posted 16 years ago #

    I got plagued by the cookies problem and none of the solutions worked. Even disabling the cookies check just meant I could not log in.

    After wasting 2 hours on this, hacking the wp-login.php script to death I finally discovered the problem.

    WPMU does NOT like hostnames. It only likes domains.

    If you set your site domain and home options to say "myserver" cookies will fail constantly. Firefox, nor IE will accept cookies from the site.

    Change all references to "myserver" to "myserver.mydomain.com", delete the cache, cookies, authed sessions and all works again.

  2. theapparatus
    Member
    Posted 16 years ago #

    WPMU does NOT like hostnames. It only likes domains.

    Unless I'm mistaken, wpmu is setup to use mydomain.tld as the basis of any cookie.

  3. paulcam
    Member
    Posted 16 years ago #

    Yes... but if you have a local net with "Search domain" or "Domain suffix" then most hosts are resolved internally with just:

    hostname

    As opposed to:

    hostname.mydomain.tld

    The former would not work for me so I had to reconfigure.

  4. andrea_r
    Moderator
    Posted 16 years ago #

    It should've come up with a message about that on install.

  5. basszje
    Member
    Posted 16 years ago #

    This might even have something to do with the fact that browsers don't like those cookies to prevent security problems.

About this Topic