Angelo_5130
Oct 22, 2010Nimbostratus
iRule to rewrite domain not working:(
Hi all,
I am very new to iRules and I was trying to write an iRule to rewrite the domain in the cookie inserted by the LTM default cookie persistence profile.
- Virtual Server is defined as HTTPS and the default HTTP profile is associated to it
- A Cookie persistence profile is associated to the virtual server:
- Parent profile: cookie
- Cookie Method: Insert
- Cookie name: My_cookie
By searching in the the forum I found the following:
when HTTP_RESPONSE {
Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "My_cookie"]} {
set the domain attribute on the persistence cookie
HTTP::cookie domain "My_cookie" ".mydomain.com"
}
}
However, when I try to apply the iRule I see that no cookie at all is sent back (instead of the My_cookie one).
Does anybody have an idea on what might be causing this?
Thanks a lot in advance!