user3911183
user3911183

Reputation: 797

Losing session with Session Stickiness in Elastic Load Balancing AWS

Actually i'm new in aws , but the ZF2 project i work on has been merged into AWS so they used two servers and i'm facing the problem of losing sessions , where the problem comes ? and is that can be related to the config ? we use Session Stickiness

Thanks.

Upvotes: 0

Views: 815

Answers (1)

chris
chris

Reputation: 37480

When you configure your ELB, you have 3 options for session affinity, none of them named "Session Stickiness". You can have no session stickiness, you can have a cookie generated by the ELB, or you can generate a cookie in your application. You also need to configure it on each port the ELB tier is listening on - so if you have an application that uses 80 and 443 then you'd need to enable it on both ports.

I would recommend using ELB generated cookies if you're not sure what's needed.

Upvotes: 1

Related Questions