Working on ECS, we built docker image and push to ECR and used it to run an ECS Fargate task.
However, while using that web app, every time we clicked any element multiple times (which will cancel some requests), the cookie and csrf token changed and we lost that session and got redirected to login page. Does anybody have idea why that happened?
We tried to run the exact same image on local but there was no error.
We also tried to disable/enable stickiness in ALB even though it didn't matter (only 1 task)
We do have similar laravel applications with same nginx config but they work well.
Sorry I can't provide example. The architect is simple: route53 > ALB (with SSL termination) > ECS service.
Edit: I only lose the session when I cancel requests using multiple click or manual cancel. The web worked fine if I just clicked and waited.