I have some ab test behind some haproxies ( in kubernetes ).
I’d like to store SERVERID into session so that someone that does not clear his/her cookies always gets redirected to the same version of the website. ( i.e.: give it a duration of 365 days )
The doc says
The cookie will only be a session cookie and will not be stored on the client's disk..
But there is also a maxlife that I think will have Haproxy store that cookie ? Right ?
But apparently a cookie can only have a maximum maxlife of 24h.
Would there be a way to have the client store a long lived cookie ? Or to hack it ?
I can also do pull requests if need be
PS: for the moment I might set up a service that will set a long lived SERVERID when it sees one.
I tried this approach :
cookie SERVERID insert maxlife 24h and this only gives me a session cookie, so assumptions were wrong.