skip to Main Content

I’ve experience issue with wordpress on centos 7 with httpd, I can’t login and it say cookie block. I’ve try on some device the result is also same.

I’ve try a lot of recommendation in and not working,

for example

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

this one isn’t working.

Or set cookie to my domain also not working.

I also try to create a file using tutorial from https://www.w3schools.com/php/func_network_setcookie.asp and also not working. I’m not sure this is server side problem or wordpress. the funny thing is the cookies are created if visiting the homepage, so the problem is only on login page

So anyone have ever experience same issue with mine? or any solution for my problem?

2

Answers


  1. Chosen as BEST ANSWER

    I change the server to NGINX and it's work normal, but this is not solution that I want since I want my server running on Apache


  2. try to add this code on wp-config.php:

    define('COOKIE_DOMAIN’, false);
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search