HAProxy community

Replace appsession with stick tables on cookie prefix


The “appsession” directive enabled a cookie to be matched on a prefix rather than the complete cookie name. Eg you could have a cookie named “MYSESSnnnn” match on the “MYSESS” part.

“appsession” has been deprecated at V1.7 and I am trying to use stick tables instead to “stick” sessions on cookies beginning with “MYSESS” but have been unable to work out how to do this.

Can someone point me in the right direction.