• Odd issue with two website that are hosted internally on Windows server. When I try to login to /wp-admin it redirects to wp-login.php and when I try to login gives me error about cookies must be enabled. Now if I go back to /wp-admin URL I’m now logged in.

    Also when I’m on the home page there is no admin bar.

    I have disabled all plugins and enabled default theme with same issue.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can try to place the bellow code in bottom of your child theme function file.do not add in to main theme function file otherwise you may loose the changes on theme update.

    setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    if ( SITECOOKIEPATH != COOKIEPATH )
        setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
    Thread Starter PyroSteveJr

    (@pyrostevejr)

    I did this in my footer.php file and shows cookies are on. Seems like some server security settings. Working with our security team, just never seen this before.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Login issue, cookies must be enabled’ is closed to new replies.