Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

RajaG's avatar
RajaG
Icon for Nimbostratus rankNimbostratus
3 years ago
Solved

Rewrite single cookie "USERCOOKIE" domain if cookie domain is "www1.test,example.com"

in General browser request have multiple cookies We just wanted to  rewrite single cookie "USERCOOKIE" domain if cookie domain is "www1.test,example.com" change it to ".test,example.com". if custome...
  • JRahm's avatar
    3 years ago

    Something like this should work:

     

    when HTTP_RESPONSE {
      if { [HTTP::cookie exists "USERCOOKIE"] } {
        HTTP::cookie domain "USERCOOKIE" ".[domain [HTTP::cookie domain "USERCOOKIE" 3]]"
      }
    }

     

     

  • Leslie_Hubertus's avatar
    3 years ago

    Hi RajaG  - did Jason's solution work for you? If yes, can you please mark it as an Accepted Solution, and that way any user having the same problem can quickly find the answer later (and Jason gets a cookie).  🙂

    If no - let's keep the thread going.