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 few of its own TS cookie per session and LTM also has persistent cookie set aswell.
According to rfc2109, you can not have more than 20 cookies per domain name, problem is we are now reaching these limitation.
I noticed that it sometimes sets over 4 TS cookies with different names but same value in one session.
We need to allow TS cookies inorder to prevent XSS attacks vectors or cookie poisoning, however.
ASM seem to be creating one cookie per App cookie, or so it seems;
can you perhaps provide more insight into TS cookies creation critaria, is there any plan from F5 to combine all these ASM generated hashed TS cooies into just one hash'ed cookie prior to spitting it out.
11 Replies
Sort By
- Colin_Walker_12Historic F5 AccountI've not heard talk of anything like that, combining the cookies. This is something I'd recommend submitting a request for via your support rep so that it can get tracked by the devs as something that's desired in the future.
- Ido_Breger_3805Historic F5 AccountIn most cases, ASM actually create one TS cookie for all domain cookies.
- strongarm_46960
Nimbostratus
According to both SOL6850 and Sol 7354, BIG-IP ASM creates 2 types of cookies , the main ASM Cookie (TSXXXXXX) and the ASM Frame cookie (TSXXXXXX_d)each serving differ functions. - hoolio
Cirrostratus
Hi jquadri, - strongarm_46960
Nimbostratus
Aaron, the requests are not through multiple ASM, one VIP per single ASM policy. see an obfuscated session seen through HTTP watch for a particular URL below. As you can see, there are indeed 3 unique TS Cookies names, these names then in turn generate 5 unique values - hoolio
Cirrostratus
I was told a while back by ASM development that the ASM cookie name format is TSxxxxxx where the x's are six hex characters generated from the web app (httpclass) name. So if you're seeing multiple ASM cookies being set in the same response, I'd expect it's because there are multiple ASM web applications in the response chain. As you've said that's not the case, I'm not sure what would explain the variety of ASM cookie names. - AaronJBRet. EmployeeIt looks like those are Path Cookies.
- Rithy_Priker_73Historic F5 AccountThere are 3 ASM cookies because ASM sees 3 different paths in two different requests,
- strongarm_46960
Nimbostratus
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.... - hoolio
Cirrostratus
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.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 } } }
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