sgnormo
Sep 20, 2022Cirrus
iRule setting Cookie Secure and SameSite
Created an iRule to set a cookie attribute to secure and samesite to Strict. The site admins are reporting that this works and then will not work. The virtual server is not using any persistences. When I try it the cookie attributes are set. So any ideas on how best to troubleshoot this issue
when HTTP_RESPONSE {
set cookie_name [HTTP::cookie names]
if { $cookie_name equals "SessionID" } {
HTTP::cookie secure $cookie_name enable
HTTP::cookie attribute $cookie_name insert "SameSite" "Strict"
}
}