# HAProxy sticky cookie ignored as forward proxy

**URL:** https://discourse.haproxy.org/t/haproxy-sticky-cookie-ignored-as-forward-proxy/9903
**Category:** Help!
**Created:** [June 10, 2024, 1:55am UTC](https://discourse.haproxy.org/t/haproxy-sticky-cookie-ignored-as-forward-proxy/9903 "2024-06-10T01:55:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![victornor](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@victornor](https://discourse.haproxy.org/u/victornor)
#### Post date: [June 10, 2024, 1:55am UTC](https://discourse.haproxy.org/t/haproxy-sticky-cookie-ignored-as-forward-proxy/9903/1 "2024-06-10T01:55:38Z")

</div>

I’m using HAProxy as a forward proxy, with a backend consisting of 10 upstream http proxies.  
I’m using roundrobin for loadbalancing which works perfectly.

```auto
backend pool
mode http
balance roundrobin
timeout queue 30s
timeout server 30s
timeout connect 5s
cookie SERVER_USED insert indirect nocache

server 127.0.0.1:8086 127.0.0.1:8086 verify none cookie c1
server 127.0.0.1:8081 127.0.0.1:8081 verify none cookie c2

```

I use curl to test this

```auto
curl --proxy "http://localhost:3128" https://twitter.com -v --insecure -b SERVER_USED=c2

```

Persistence is ignored and the cookie is not even ommitted from the request before it is forwarded through the proxy.
