Enable Stickiness

Since our core application uses session-based authentication, users might lose their session if the Application Load Balancer routes their subsequent requests to different backend targets. To prevent this, we need to enable Session Stickiness. This feature ensures that requests from a specific user are consistently directed to the same target for a defined period, thereby preserving their session continuity.


Enable Stickiness

1. Navigate to the EC2 console and find the fcj-core-tg target group. Click on it.

image

2. Select the Attributes tab and click Edit.

image

3. Scroll to Stickiness and check Turn on stickiness.

image

4. Click Save changes.

image