Forum Discussion
Eric_Waite_1046
Jan 08, 2007Nimbostratus
findstr
What does the following mean exactly?
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
What would it set the jsess variable in the following request?
http://users.read...
Eric_Waite_1046
Jan 08, 2007Nimbostratus
Thanks for you help, my problem stems from the following iRule that I am using for persistence. On some of my requests the persistence is not holding and its going to another server in the pool. I am at a loss.
I am correct to assume that the response is not what is not controlling what server the request gets sent to?
Any help would be appreciated.
- Eri
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JID"] } {
set resPers [HTTP::cookie "JID"]
log "lookup for $resPers in table = >[persist lookup uie $resPers]<"
if { [persist lookup uie $resPers] equals "" } {
persist add uie $resPers 3700
log "NEW PERSIST - added response entry *$resPers* for server [LB::server addr]"
} else {
log "FOUND PERSIST - continued sessionId *$resPers* for server [LB::server addr]"
}
}
}
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
if { $jsess != "" } {
persist uie $jsess 3700
log "USING PERSIST - used URI value is *$jsess*, server [LB::server addr]"
}
}
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