The MU forums have moved to WordPress.org

Cookie error - site not letting me log in (3 posts)

  1. duck__boy
    Member
    Posted 13 years ago #

    Hey all,

    One of my sites has stopped allowing me to log on, but all of the others are fine. When I enter the correct username and password the login screen is just displayed again. If I enter incorrect details I am shown two errors telling me that my password is incorrect (expected) and that 'Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.'

    Cookies are 100% enabled, and I even set the privicy to accept all Cookies, but still no joy. All my other sites allow me to login just fine, so it appears to be something to do with the site rather than the browser.

    Does anybody have any trouble shooting tips at all?

    Thanks

  2. duck__boy
    Member
    Posted 13 years ago #

    Found a solution. Add the below to your 'config.php' and leave it in there -

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

  3. FolioVision
    Member
    Posted 13 years ago #

    Hi,

    I had the same problem. Thanks for posting this, it really helped me a lot.

    Are there any known security issues and such with these settings? What are they about?

    I found something about it here, but nothing too detailed: http://codex.wordpress.org/Editing_wp-config.php So I guess it's safe.

    Thanks,
    Martin

About this Topic

  • Started 13 years ago by duck__boy
  • Latest reply from FolioVision