Forum Discussion
Ian_J_37801
Nimbostratus
Feb 25, 2008Cookie persistence
Hi,
I am using cookie persistence to load balance some web servers. So far so good!
What happens though is the BigIP adds the cookie to the end of the cookie list as shown below: ...
hoolio
Cirrostratus
Feb 25, 2008Headers (including the Set-Cookie header) are generally added to the end of the existing headers. If you want to change the order of the cookies in responses, I think you'd need to save each Set-Cookie header value in an array, remove the header and then re-insert each of the headers in your required order. This could be a bit resource intensive to do for every response.
Can the app be modified to parse the cookie headers anywhere in the list of headers? If so, that would be the most efficient fix.
If you do need to use an iRule to do this, what version are you running? The reason I ask is that the handling of multiple headers of the same name was changed in 9.4.0.
Aaron
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