I have set up an AWS Fargate cluster with ten WordPress containers behind an AWS Application Load Balancer (ALB).

I tested that my settings work when I have one container. Why can I not log in when I have ten containers?


The issue turned out that the login flow is interrupted because the second HTTP request usually goes to a different container than the container that delivered the wp-login.php login form.

The solution is to turn on Sticky Sessions for the AWS Application Load Balancer (ALB) Target Group that serves the Fargate containers.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.