Check if the HTTP Cookie exists and update the domain attribute to the HTTP Cookie during HTTP Response.
when HTTP_RESPONSE {
# Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "persist_cookie"]} {
# set the domain attribute on the persistence cookie
HTTP::cookie domain "persist_cookie" "test.com"
}
}
-- HTTP_RESPONSE
cookie_name = "persist_cookie"
if avi.http.cookie_exists(cookie_name) then
avi.http.update_cookie(cookie_name, "domain", "test.com")
end