Forum Discussion
lizunjjg_280139
Nimbostratus
Jan 24, 2017Wechat persistence irules!!
This is an http post packet(WeChat source code),
Use {Fromusername} for session hold(persistence).
a lot of thanks
JG
Cumulonimbus
Jan 24, 20171) Local Traffic ›› Profiles : Services : XML : click on Create
to create an XML profile, and specify xpath with "FromUserName";
2) Attach the xml profile to the virtual server;
3) Attach the following irule to the virtual server:
when XML_CONTENT_BASED_ROUTING {
for {set i 0} { $i < $XML_count } {incr i} {
log local0. $XML_queries($i)
log local0. $XML_values($i)
if {($XML_queries($i) contains "FromUserName")} {
persist uie $XML_values($i) 0
}
}
}
when LB_SELECTED {
log local0. "Pool member selected: [LB::server addr]"
}
(This is untested.)
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