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 the server-id.
It would be nice to have that the F5 builds a table for the server-id and make the lb based on this value in the request.
Example:
http://www.mysite.com?srvid=srv1
where
srvid: is the variable
srv1: value to persist on
Any suggestions are welkom.
Regards,
Gerard.
1 Reply
- unRuleY_95363Historic F5 AccountWhat you are referring to is what we call Universal Persistence.
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