Forum Discussion
Rich101
Nimbostratus
Aug 05, 2015Traffic Policies - how to use different cookies for each pool
Hi,
I've done some digging around but can't find much detail on this.
We have a situation where we have several pools behind a single VS and are using a traffic policy to direct to the corr...
Stanislas_Piro2
Cumulonimbus
Aug 10, 2015Hi,
In irule, you can assign a different cookie name.
In policies, you can create a TCL variable...
So with these two informations, you can create a generic irule like:
when HTTP_REQUEST {
if {([info exists "CookieName"])} {
persist cookie insert $CookieName 0
}
}
And Assign the desired cookie name in the value of CookieName variable in Policy:
ltm policy Cookie_name {
controls { forwarding }
requires { http }
rules {
cookietest {
actions {
0 {
tcl
set-variable
expression foo
name CookieName
}
}
ordinal 1
}
}
strategy first-match
}
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