Cookie error when logging in WordPress

Berikut cara mengatasi error cookies saat login ke wordpress.

Tambah script dibawah ini pada file Function.php yang berada di themes wordpress yang aktif :

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

Source : https://wordpress.org/support/topic/cookie-error-when-logging-in/page/2/

Posted on: April 18, 2021, by :