Forum Discussion
mikey_webb
Cirrus
Aug 08, 2014irule for persistent
Please help. I have a Virtual Server with 4 pool members and simply want a user to connect to the same member ie cookie persistence. Need cookie as within the application when upload is done a new se...
Kevin_Davies_40
Nacreous
Aug 15, 2014When does qarpc change? You need to study the logging of the qarpc cookie and see when it changes as a file transfer occurs. The F5 will always persist back to the same pool member if the cookie matches.
Logging is the key to solving your problem. You need to watch the cookie behaviour throughout a session. This will help you.
when CLIENT_ACCEPTED {
set cid [expr {int (rand() * 100000)}]
log local0. "\[$cid\] Connection opened."
}
when CLIENT_CLOSED {
log local0. "\[$cid\] Connection closed."
}
when HTTP_REQUEST {
set rid [expr {int (rand() * 100000)}]
log local0. "\[$cid:$rid\] URI = [string range [HTTP::uri] 0 50]..."
if {[HTTP::cookie exists qarpc]} {
log local0. "\[$cid:$rid\] Cookie qarpc = [string range [HTTP::cookie qarpc] 0 50]..."
} else {
log local0. "\[$cid:$rid\] No Cookie qarpc Found In Request"
}
}
when HTTP_RESPONSE {
if {[HTTP::cookie exists qarpc]} {
log local0. "\[$cid:$rid\] Response Cookie qarpc = [string range [HTTP::cookie qarpc] 0 50]..."
}
}
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