Forum Discussion
jerm1020_254086
Jun 20, 2016Nimbostratus
Setting cookie levels
During a review of www.testtest.com cookies for potential RWD checkout render we noticed that the F5 LTM and ASM cookies seem to be FQDN based (e.g., www.testtest.com) versus Top Level Domain based (...
Yann_Desmarest
Cirrus
Hi,
In general, I prefer to have a VS layered VS architecture.
You apply the following irule to the Frontend VS :
when CLIENT_ACCEPTED {
virtual virtual_server_name
}
Then, on the same irule, you can change the domain of desired cookies :
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie domain $mycookie ".testtest.com"
}
}
You may also need to restrict to certain cookies only :
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
if { [class match $mycookie REWRITABLE_COOKIES] } {
HTTP::cookie domain $mycookie ".testtest.com"
}
}
}
Where REWRITABLE_COOKIES is a datagroup of type string.
Yann_Desmarest
Jun 20, 2016Cirrus
Yes, define a frontend VS and assign this irule. "virtual_server_name" must be replaced by your internal VS name (today your actual existing VS)
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