Forum Discussion
strongarm_46960
Nimbostratus
Dec 01, 2008To many Cookies
I have just recenty put ASM in front of a large app, this app has been known to set up to 17 or more cookes per session depending on what transaction the user is doing, problem is ASM seems to set a f...
hoolio
Cirrostratus
Jan 08, 2009A 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
