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 ...
naladar_65658
Altostratus
Aug 09, 2010I 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]
}
}
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