Forum Discussion
hooleylist
Aug 16, 2011Cirrostratus
Just change My_cookie to the cookie name you want to rewrite the domain for. If you're using the default cookie name for the cookie insert persistence profile, you can use this:
Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "BIGipServer[LB::server name]"]} {
set the domain attribute on the persistence cookie
HTTP::cookie domain "BIGipServer[LB::server name]" ".ddcpoc.com"
log local0. "[IP::client_addr]:[TCP::client_port]: Modified domain on BIGipServer[LB::server name]"
}
Aaron