Haproxy cookie issue when server is down

Hi!

I am running haproxy-1.3.26-1.el5 and using the cookie option so that the user will use the same proxy server for browsing. The problem is that if one of the proxy server goes down then the user still keeping the same server and is not able to browse. Although in the web console I can see that the server is showing as red. My thought was that althought I am using cookie but in case of server offline the server will get new server from Haproxy.
My config:
cookie SERVERID insert indirect nocache
server proxy01 10.0.0.1:80 cookie p1 check
server proxy02 10.0.0.2:80 cookie p2 check

Need some help in this.

Thanks.

Hi!

Anyone suggest something?

Thanks

I have figure it out. something wrong in my setup. Can you please delete this post.