Hey Devendra, If you're sure those values are not already set (as this will always add them), you could use something like this;
rspirep ^(Set-Cookie:\ JESSSIONID.*) \1;\ HttpOnly;\ Secure Kind regards, Steven Iveson [email protected] -------- Original Message -------- Subject: regarding set-cookie option Local Time: 1 March 2017 5:36 AM UTC Time: 1 March 2017 05:36 From: [email protected] To: [email protected] devendra joshi <[email protected]> Hi, I just want to know that , can i set following cookie for JESESSIONID only. rspirep ^(set-cookie:.*) \1;\ HttpOnly rspirep ^(set-cookie:.*) \1;\ Secure I need the syntax, i did this in Apache, but i want to it in HaProxy. Following setting i did in apache and its working perfect. #Header edit Set-Cookie (JSESSIONID.*) "$1; HTTPOnly" #Header edit Set-Cookie (JSESSIONID.*) "$1; Secure" ====================================== Devendra Joshi Naaptol Online Shopping Pvt. Ltd. M: +91 8080106035 | Tel: +91 022 61432446 Disclaimer: This e-mail and any documents, files, or previous e-mail messages appended or attached to it may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Disclaimer: This e-mail and any documents, files, or previous e-mail messages appended or attached to it may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

