I am trying to delete these TS cookies using an iRule between a created sandwich VIP, the HTTP Response part of my code is off key, can you please check where my logic is going wrong....
when CLIENTSSL_CLIENTCERT {
virtual www.mysite1.vip
}
when HTTP_REQUEST {
virtual www.mysite2-vip
}
when HTTP_RESPONSE {
set acookie [HTTP::cookie names]
set asmTS "TS\w{6}"
for {set i 0} {$i < [HTTP::header count $acookie ]} {incr i}{
log local0. "the cookes are $i: acookie"
if {[info exists $asmTS ] and [HTTP::cookie exists $asmTS] } {
log local0. "TS matched cookie: $eCookie "
HTTP::cookie remove $asmTS
log local0. "TS Cookies gone!"
}
}
}
Lastly, I also tried deleting using STREAM, no joy with that either, doesn't stream do headers?
Thanks in advance.