Forum Discussion
Christopher_Hyl
May 06, 2011Nimbostratus
Hmmm, it doesn't look like it's working on our test website. It's not even falling back to source persistence. Am I supposed to be checking if a persistence profile already exists before assigning one in the variable? Am I clobbering already existing persistence assignments? Should I be doing what they're doing here:
http://devcentral.f5.com/Forums/tabid/53/aft/61948/Default.aspx
Which has this block of code:
when HTTP_REQUEST {
Check if there is an existing UIE persistence record
if {[persist lookup uie "[IP::client_addr]_apps"] ne ""}{
Use the existing UIE persistence record regardless of which URI was requested
persist uie "[IP::client_addr]_apps"] 36000
} else {
Check requested path
switch -glob [HTTP::path] {
"/apps/aml/*" {
Persist client for 10 hours using client IP _ apps
persist uie "[IP::client_addr]_apps" 36000
}
default {
Persist client for 1 hour
persist source_addr 3600
}
}
}
}
I'm speculating I need that first line of code?