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...
unRuleY_95363
Dec 15, 2004Historic F5 Account
We discovered an issue in 9.0.2 with the separator argument of the findclass command. The getfield command should be used in conjunction with the findclass command until 9.0.3 where the issue has been resolved.
Updated example:
rule direct_select {
when HTTP_REQUEST {
set server [HTTP::cookie "server"]
set entry [findclass $server $::node_class]
if { $entry ne "" } {
node [getfield $entry " " 2]
} else {
log "Bad server cookie: $server"
reject
}
}
}
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