Forum Discussion
Question on persistence - remove/add
Okay I'm not sure if this is the best approach, I have a VIP performing cookie persistence to a L7 iRule, passing traffic by URI.
Is the below possible, stripping the cookie from the designated URL and then adding Source Address Persistence only to that /URI value in question?
URL Example: school.com
school.com/abc << Cookie Persistence school.com/123 << Want to strip all Cookies and make it Source Address Persistence school.com/numbers << Cookie Persistence
Or will the school.com/numbers also remove cookies and inject Source Address persistence?
when HTTP_REQUEST {
"/abc*" {
pool abc
}
"/123*" {
pool 123
persist cookie remove
persist source_addr 255.0.0.0 0
}
"/numbers*" {
pool numbers
}
}
1 Reply
- Vijay_E
Cirrus
Looks a bit complex. What are you seeking to achieve in terms of functionality ? I mean, why can't you utilize just one type of persistence instead of alternating between multiple types ? One easy option without fully understanding your requirements is Universal Persistence. You just have to change the persistence key from cookie to IP with the same iRule.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
