For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Reorder Http Cookies

Problem this snippet solves:

If for some reason you want to make sure all your cookies are neat and tidy, this iRule will reorder them for you so your backend server doesn't have to take on that burden.

Code :

when HTTP_REQUEST {
  if { [HTTP::cookie exists "cookie-name"] } {
    set cookie_s [HTTP::cookie "cookie-name"]
    HTTP::cookie remove "cookie-name"
    set cookie_a [HTTP::header cookie]
    HTTP::header replace "cookie" "$cookie_a; WLSID=$cookie_s"
  }
}
Published Mar 18, 2015
Version 1.0