Forum Discussion
Tokyo_Jihen_931
Dec 03, 2010Nimbostratus
iRule for URL persistence
Hello all,
I am a newbie of iRules programming. My system is BIG-IP 9.1.2. I am trying to implement persistence using a string that appear in URL.
For example.
http:...
Tokyo_Jihen_931
Dec 09, 2010Nimbostratus
Thank you very much Chris~~
Actually the 6 characters string is a random number that is generated from the web client. (Once the random number is generated, that number will be the same during the transactions) So i need to use that string as the identifier to persist the connection.
http://test.big-ip.com/install/123456/whateverxxxxxx
In my case, the 5th field of the url is the 6 characters string. (is that right?)
So to get the 5th field in the url, i used [getfield [HTTP::uri] "/" 5] .
when HTTP_REQUEST {
set session_id [getfield [HTTP::uri] "/" 5]
if {$session_id ne ""} {
persist uie $session_id 1800
}
}
I tried the above iRule in my F5 but it seems not work, the connection cannot be persist.
any thing wrong in my iRule ?
Thank you for your help.
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