Forum Discussion
IT
Nimbostratus
Jul 22, 2010Persistence problem after modifying Set-Cookie
Hi,
We use cookie persistence on a VS in front of some tomcat servers.
Our goal is to add the domain at the end of every cookie in an HTTP response (BIGIP cookie, JSESSIONID cookie...)
...
hoolio
Cirrostratus
Jul 22, 2010That's a lot of processing. I think you could use a couple of inbuilt commands to do this much easier:
when HTTP_RESPONSE {
Loop through each response cookie by name
foreach aCookie [HTTP::cookie names] {
Set the domain on the cookie to .example.com
HTTP::cookie domain $aCookie ".example.com"
}
}
Can you give this a try and see if it works for your two virtual servers?
Thanks, Aaron
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
