Forum Discussion
Lee_Sutcliffe
Nacreous
Jul 16, 2012Session 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 ...
Lee_Sutcliffe
Nacreous
Jul 17, 2012I've re-enabled all 6 servers in the pool and tried the following irule, copied from Hoolio's post in https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/39/aft/33490/showtab/groupforums/Default.aspx
This seems to be working but to be honest irules aren't my strong point and I dont know why it's working.
Is anyone able to give a break down
of the following, in particular what the set lbsicap section does
when HTTP_REQUEST {
cookie length is greater than 0
if { [string length [HTTP::cookie "AUTHTOKEN"]] > 0 } {
persist uie [HTTP::cookie "AUTHTOKEN"]
} else {
set lbsicap [findstr [HTTP::uri] "AUTHTOKEN" 11 ";"]
if { $lbsicap != "" } {
persist uie $lbsicap
}
}
}
when HTTP_RESPONSE {
if { [string length [HTTP::cookie "AUTHTOKEN"]] > 0} {
persist add uie [HTTP::cookie "AUTHTOKEN"]
}
}
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
