IIS 7 and Above
Application Request Routing (ARR)
Web application lose session in ARR load balance
Last post Apr 17, 2018 02:31 PM by jamwesker
Apr 16, 2018 04:09 PM|jamwesker|LINK
I would like to host three backend server behind the application request routing load balancer. However, the session always get lost. So how can I fix this? I would like to share the session for all three websites. Thanks in advance.
Apr 17, 2018 06:33 AM|Yuk Ding|LINK
You had asked,” the session always get lost. So how can I fix this? I would like to share the session for all three websites.”
You need to use “client affinity” feature of ARR.
Application Request Routing provides a client affinity feature that maps a client to a content server behind Application Request Routing for the duration of a client session. When this feature is enabled, the load balancing algorithm is applied only for
the very first request from the client. From that point on, all subsequent requests from the same client would be routed to the same content server for the duration of the client session. This feature is useful if the application on the content server is stateful
and the client's requests must be routed to the same content server because the session management is not centralized.
To configure client affinity using the UI:
In addition, if you need to share the session, please try the sql server session state.
Apr 17, 2018 02:31 PM|jamwesker|LINK
Thank you for your help.