# Session persistence during failover to passive node in HA Proxy

**URL:** <https://discourse.haproxy.org/t/session-persistence-during-failover-to-passive-node-in-ha-proxy/3140>\
**Category:** Help!\
**Created:** [October 25, 2018, 4:26am UTC](https://discourse.haproxy.org/t/session-persistence-during-failover-to-passive-node-in-ha-proxy/3140 "2018-10-25T04:26:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skinnyguinea](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Skinnyguinea](https://discourse.haproxy.org/u/Skinnyguinea)\
**Post date:** [October 25, 2018, 4:26am UTC](https://discourse.haproxy.org/t/session-persistence-during-failover-to-passive-node-in-ha-proxy/3140/1 "2018-10-25T04:26:54Z")

</div>

Hi,  
We have configured HA Proxy to act as a Highly Available load balancer for our application (PIM).

This application is used for accessing remote servers via either mstsc or putty from a common interface.

We need to know how to ensure that sessions are not disrupted if one of the nodes in the HA proxy setup goes down.

Can someone let us know how to ensure that the session remains active if one of the HA proxy nodes  
is down?

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [October 25, 2018, 9:28am UTC](https://discourse.haproxy.org/t/session-persistence-during-failover-to-passive-node-in-ha-proxy/3140/2 "2018-10-25T09:28:48Z")

</div>

When the active Haproxy node goes down, the TCP sessions will die with it. The only thing you can sync between 2 haproxy instances are stick-tables for session persistence, but that doesn’t mean the TCP sessions remains up (it just uses to the same backend server when it reconnects).
