Troubleshooting WordPress: Cookies Blocked or Not Supported – Updated for 2025

Cookies Blocked or Not Supported - Wordpress

Are you stuck in a frustrating login loop with WordPress Multisite? If you’re seeing the error message: “Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress,” don’t worry—you’re not alone. This issue often arises due to domain mapping in Multisite installations. Here are some effective solutions to get you back on track:

Solution 1: Update Your wp-config.php File


Add one of the following lines to your wp-config.php file:

define('COOKIE_DOMAIN', false);

Or:

define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );

Solution 2: Clear Session Tokens

Navigate to PhpMyAdmin and go to wp_usermeta. Delete the meta_value for session_token.

Solution 3: Additional Configurations for Multisite

If the above solutions don’t work, try adding these lines to your wp-config.php file:

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

Solution 4: Check Browser Settings

Sometimes, “Cookies Blocked or Not Supported” might be related to your browser settings. Ensure that cookies are enabled in your browser. You can usually find this option in the privacy or security settings. Additionally, try clearing your browser cache and cookies, as this can resolve conflicts that might be causing the login loop. If you’re using browser extensions, consider disabling them temporarily to see if they are interfering with the login process.

Solving the Dreaded, “Cookies Blocked or Not Supported” Issue

For more detailed discussions and alternative solutions, check out this helpful Stack Overflow thread

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.