Forum Discussion
Brad_Parker_139
Nacreous
Try using this iRule. It will not try to set secure or httponly if it is already set. What you are doing to manually changing the cookie payload without inspecting what is already there.
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie secure $mycookie enable
HTTP::cookie httponly $mycookie enable
}
}
Brad_Parker_139
Feb 01, 2016Nacreous
Apparently edit isn't working today. You probably also want to ensure your cookie is at least version 1 using this:
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie version $myCookie 1
HTTP::cookie secure $mycookie enable
HTTP::cookie httponly $mycookie enable
}
}