Hi,

Yes, appsession has been obsoleted by "cookie" and "set-cookie" stick
tables pattern extraction (in HAProxy 1.5-dev7 as far as I remember).
As an example:

 stick-table type string len 32 size 10K
 stick store-response set-cookie(PHPSESSID)
 stick on cookie(PHPSESSID)

or, better, if your cookie is presented on the query string by the key
"session_id", then this would do the persistence as well:
 stick on url_param(session_id)

You can use "peers" section and to share the content of the table
between two LBs and to recover your table after a reload of haproxy.

regards

Reply via email to