Forum Discussion
atoth
Cirrus
Oct 26, 2019Right way to modify a cookie?
I need to alter the domain of a pre-existing cookie. Lets say the cookie's name NewCookie. The obvious choice would to use HTTP::cookie domain <name> [domain]
But description for that say...
Simon_Blakely
Employee
Oct 28, 2019If you are using BigIP v12 or later, use the
HTTP::cookie attribute
command.
Please note: you will need to prepend a " " to the attribute being inserted until this is fixed in a future release.
foreach cookie_name $cookie_names {
HTTP::cookie attribute $cookie_name remove domain
HTTP::cookie attribute $cookie_name insert " Domain" ".my_domain.org"
}
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