TMcGov_92811
Sep 07, 2010Nimbostratus
Setting Cookie Persistence in iRule
Hello,
I'm trying to create a Universal Persistence profile that calls a iRule to determine which persistence method to use based on the HTTP URI.
In the Resources section of the Virtual Server under Default Persistence Profile, I select my universal persistence profile which references the following IRule:
when HTTP_REQUEST {
Check the requested URI
switch -glob [HTTP::uri] {
"*/BPELConsole/*" -
"*/BPELAdmin/*" {
persist cookie insert
}
default {
persist none
}
}
}
However, I get the following error message: Persistence mode (Cookie) called out in rule (rule-persist-b2bib) requires a corresponding persistence profile for virtual server (vs-b2bib.xa.cccis.com-http).
I dont understand how to correct this issue. If I slightly modify the IRule to say "persist source_addr", there are no error messages but of course I do not get my intended result.
Any ideas on how to correct this ?