You are here: System operations > High availability > Configuring a highly available environment > Configuring session affinity

Configuring session affinity

Session affinity is configured with the load balancer. It ensures that all requests from a user are handled by the same Pega Platform server.

Production load balancers offer a range of options for configuring session affinity. The Pega Platform supports cookie-based affinity. Configure cookies for high availability session affinity using the following variables.

session/ha/quiesce/customSessionInvalidationMethod

Note: Session affinity configuration is only applicable when using slow drain for quiesce.

session/ha/quiesce/cookieToInvalidate

Note: Session affinity configuration is only applicable when using slow drain for quiesce.