Hmmmm, perhaps the spacing - can't see any reason it shouldn't work, but I've 
only ever added one value.

It would be worthwhile using browser developer tools or similar to actually 
inspect the header client-side and check things are being modified as expected.

Also, perhaps the Java version in use doesn't support these values? You might 
try one at a time to see if it's one or the other or both.



Kind regards,

Steven Iveson
[email protected]

This is a secure ProtonMail account.



-------- Original Message --------
Subject: Re: regarding set-cookie option
Local Time: 1 March 2017 10:50 AM
UTC Time: 1 March 2017 10:50
From: [email protected]
To: Steven Iveson <[email protected]>
[email protected]


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
Naaptol 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
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.






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.

Reply via email to