Forum Discussion
gefa_105039
Nimbostratus
Dec 10, 2004How to persist on value in the URI
Is it possible to persist on a value in the URI?
We then could write a a iRule where we check this value, in this case a server-id. We could write a iRule where we define every value of...
unRuleY_95363
Dec 15, 2004Historic F5 Account
What you are referring to is what we call Universal Persistence.
To do this you need to use a rule to extract the portion of the uri you want to persist on and then execute the persist uie command with that value.
Here is an example that persists on the uri query string's "srvid" value:
rule uri_persist {
when HTTP_REQUEST {
set srvid [findstr [URI::query [HTTP::uri]] "srvid=" 6 ";"]
if { $srvid ne "" } {
persist uie $srvid
}
}
}
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
