Forum Discussion
Chris_Miller
Altostratus
Aug 09, 2010Rewrite Existing Client Cookie
Let's say a client has a cookie called "sample" with a value of "1" Can an F5 replace the value of the cookie on the client machine? I know it can insert a new cookie with the same name and different ...
hoolio
Cirrostratus
Aug 10, 2010Based on a little experience with this and reading the RFC, if you're setting the cookie correctly from LTM, it should overwrite the pre-existing cookie with the new value. If that's what you want to happen and it's not, I'd try investigating that issue further rather than try to determine which cookie in the request is the "correct" one.
With HTTP::cookie, it doesn't seem like there is a simple way to handle two different cookies with the same value. With headers you can use 'HTTP::header values $header_name' to get the values for multiple instances of the same header. It's also worth noting that you can't differentiate between two cookies set with a different path or domain on requests as the client only includes the cookie name and value--not any of the properties that the cookies were set with.
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