Forum Discussion
MaxMedov
Sep 07, 2023Cirrostratus
Duplicate "Set-Cookie" header in response
Hello, I have a duplicate Set-Cookie header in response and the client application didn't like it.. How can I remove one of the Set-Cookie headers and keep only one? For example the last one. Thank...
Sep 07, 2023
Hi ,Can you try to use an irule to remove the cookie for example:
rule remove_cookie
when HTTP_RESPONSE { HTTP::cookie remove "MYCOOKIE" } }
In the case it remove both cookies you can try to added again with the irule but in this case is only going to add 1
cookie and not a dupplicated
The command to insert the cookie is:
HTTP::cookie insert name <name> value <value> [path <path>] [domain <domain>] [version <0 | 1 | 2>]
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