Forum Discussion
ItTim_39238
Nimbostratus
Apr 14, 2008What to use
First, let me say that I'm a tech guy, not a coder. Second, I'm not looking for a final solution - just someone to point me in the right direction so I can pass on some basic info to my Dev team to w...
Nicolas_Menant
Employee
Apr 14, 2008Hi,
The basic command you'll need will be :
TCP::collect and TCP::payload: they will give you the capability to analize network packets: Click here, Click here
persist uit to create persistency on the string you want to make persistency on: Click here
when CLIENT_ACCEPTED {
TCP::collect 44
}
when CLIENT_DATA {
set ConStr [TCP::payload 44]
set SessionID [substr [getfield $ConStr "@" 2] 0 " CHID" ]
log local0.info $SessionID
if { $SessionID equals "" } {
No SessionID, just load balance as usual
log local0.info "No session ID, load balancing the connection."
pool YOUR_DEFAULT_POOL_NAME
} else {
All clients with this SessionID go to this server
timeout is 120 seconds
persist uie $SessionID 120
}
} Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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
