Matt
Matt

Reputation: 4387

haproxy and sticky session

I need to have sticky sessions on my haproxy(1.4). Below my backend configuration.

    cookie SRVSTICKY insert indirect nocache
      server server1 192.162.20.1:80 check cookie s1
      server server2 192.162.20.2:80 check cookie s2

This works well but in the case where the client doesn't accept the cookies, the loading of my webpage doesn't works. I've try to add a third server without cookie to redirect these clients(like a default server). But this doesn't works.

Have you got an idea, to redirect a client who blocks cookies session, to a default server?

Thanks

Upvotes: 2

Views: 3169

Answers (1)

Willy Tarreau
Willy Tarreau

Reputation: 3424

People who deal with cookie-incompatible clients generally use source address, because at least one of these two features works in general (eg: some payment terminals or webservice clients that do not support cookies will have a fixed address).

Upvotes: 4

Related Questions