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 ...
Chris_Miller
Altostratus
Aug 09, 2010Posted By naladar on 08/09/2010 11:42 AM
I think something like this would allow you to change the cookie value. Sorry, I don't have a good way to test this out at the moment.
when HTTP_REQUEST {
Check if the cookie exists in request
if { [HTTP::cookie exists "cookie-name"] } {
Change cookie's value
HTTP::cookie [value] [string]
}
}
Since this is in the HTTP_REQUEST event, this would just be replacing it from the F5 to the pool member, right?Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
