Hi Steven, Thanks for your reply. I have check your syntax but unfortunately , not work. then i added following syntx, i got the result ,i.e HttpOnly & Secure But facing issue after those changes. User not able to login as well as not able to add product in cart on website. when i remove those setting again it started working.
My Syntax rspirep ^Set-Cookie:\ (JSESSIONID.*) Set-Cookie:\ \1;\ HttpOnly rspirep ^Set-Cookie:\ (JSESSIONID.*) Set-Cookie:\ \1;\ Secure ====================================== *Devendra Joshi* *Naap**tol* Online Shopping Pvt. Ltd. M: +91 8080106035 | Tel: +91 022 61432446 On Wed, Mar 1, 2017 at 3:33 PM, Steven Iveson <[email protected]> wrote: > 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* > *Naap**tol* 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. > > > > > -- 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.

