Search

Language:  

Available article translations:

Configuring session persistance based on cookie

APPLIES TO:
  • Parallels Remote Application Server 16.2

Information

This article describes how to base HTML5 Gateway session affinity to a cookie instead of using source addressing.

Configuration

Detailed setup for HAProxy described here: load balancing, affinity, persistence, sticky sessions: what you need to know

Examine the Using application session cookie for persistence section from the article above for details related to session affinity based on cookie.

The HTML5 Gateway uses a cookie with ID ASP.NET_SessionId

       cookie ASP.NET_SessionId prefix nocache

The load balancer must act in round robin mode

       balance roundrobin

Assuming that IP addresses of the RAS Gateways are 10.125.1.10 and 10.125.1.20 respectively, The final configuration should  be as follows:

frontend ft_web
  bind 0.0.0.0:443
  default_backend bk_web
backend bk_web
  balance roundrobin
  cookie ASP.NET_SessionId prefix nocache
  server s1 10.125.1.10:443 check cookie s1
  server s2 10.125.1.20:443 check cookie s2


NOTE: Please contact your load balancing solution vendor for detailed configuration.




1d70d1f9c41d01c5f7202a4290e434e1 8c1bd7ac0efc8c4ffbb530ad3ab16fae

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No