A stream profile operates on the payload only. For a TCP VIP which passes HTTP traffic, the stream profile would affect the HTTP headers and payload. Once you add the HTTP profile, LTM parses the request/response as HTTP and the stream profile only applies to the HTTP payload.
Can you try this example to remove cookies with match the format TSWWWWWW and TSWWWWWW_D:
when HTTP_RESPONSE {
log local0. "Cookies: [HTTP::cookie count] - [HTTP::cookie names]"
Save the cookie names in the response to a list
set cookies_names [HTTP::cookie names]
loop through each cookie by name in response
foreach a_cookie $cookies {
log the current cookie name
log local0. "a cookie: $a_cookie"
check the current cookie name to see if it's in the format TS?????? or TS??????_?
if { [string match "TS??????" $a_cookie] or [string match "TS??????_?" $a_cookie] } {
log local0. "matched cookie: $a_cookie"
Remove the cookie(s) which match the patterns
HTTP::cookie remove $a_cookie
}
}
}
Aaron