Forum Discussion
Lee_Sutcliffe
Jul 16, 2012Nacreous
Session persistence - reading application set cookie
Hi, We have out-sourced some developers who have written an application in their development load balanced environment however I do not think they use F5. Now the application ...
nitass
Jul 18, 2012Employee
set lbsicap [findstr [HTTP::uri] "AUTHTOKEN" 11 ";"]
if { $lbsicap != "" } {
persist uie $lbsicap
} this part is to find whether there is AUTHTOKEN in url. if so, do persist based on key which is retrieved from the url.
[root@ve10:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set uri "/something?AUTHTOKEN=1234567890;"
log local0. "\$uri is $uri"
log local0. "\[findstr $uri AUTHTOKEN 11 ;\] is [findstr $uri AUTHTOKEN 11 ;]"
}
}
[root@ve10:Active] config tail /var/log/ltm
Jul 19 06:26:42 local/tmm info tmm[5111]: Rule myrule : $uri is /something?AUTHTOKEN=1234567890;
Jul 19 06:26:42 local/tmm info tmm[5111]: Rule myrule : [findstr /something?AUTHTOKEN=1234567890; AUTHTOKEN 11 ;] is 234567890;
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