Forum Discussion
James_Thomson
Employee
Dec 10, 2004mapclass2node
Along the same lines off an an earlier post by Natty about persistence. I'm trying to just read a cookie that is handed out by the server and persist a user on it. One example is where the cookie is s...
James_Thomson
Employee
Dec 20, 2004Thanks, I used this and it works great.
rule select_on_cookie {
when HTTP_REQUEST {
if {[HTTP::cookie exists "server"]} {
set result [findclass [HTTP::cookie "server"] $::nodes]
if {$result ne ""} {
node [getfield $result " " 2]
}
}
}
}
class nodes {
"s1s1 10.11.1.10:80"
"s1s2 10.11.1.20:80"
}
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