Forum Discussion
Moe_Jartin
Cirrus
Feb 02, 2011per URI jsessionid persistence
I am trying to enable persistence on the JSESSIONID cookie but only for a specific URI under the VIP. I altered the CodeShare JSESSIONID persitence example a bit to fit my scenario.
when HTTP_REQUEST {
switch -glob $header_uri {
/path1* {
pool pool1
}
/path2* {
pool pool2
}
/path3* {
pool pool3
}
/path4* {
set persist_jsessionid 1
if {[HTTP::cookie "JSESSIONID"] ne ""}{
persist uie [string tolower [HTTP::cookie "JSESSIONID"]] 3600
}
pool pool4
}
}
}
when HTTP_RESPONSE {
if {$persist_jsessionid}{
if {[HTTP::cookie "JSESSIONID"] ne ""} {
persist add uie [string tolower [HTTP::cookie "JSESSIONID"]] 1800
}
}
}
what i am seeing is that EVERYTHING is persisting to the pool4 member rather than following the irule to send it to the appropriate pool. I have a oneconnect profile associated to the VIP and it has a 255.255.255.255 mask.
I set the persist_jsessionid variable trying to have it only persist for that specific URI but, same behavior. Any ideas?
Joe M
8 Replies
No RepliesBe the first to reply
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