Forum Discussion

Pat_70435's avatar
Pat_70435
Icon for Altocumulus rankAltocumulus
Feb 17, 2017

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

  • 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.