Forum Discussion
Nov 17, 2010
matchclass, uri routing, and cookie persist & snat irule
Hey guys and gals, it's been a bit, I hope all is well.
Please review the below scenerio and let me know if i'm missing something, or if you would do anything differently..
I worked up the b...
Brian_Mayer_841
Jan 27, 2012Nimbostratus
Here's my latest crack at it.. this is getting ugly! Any help is much appreciated.
Thanks!
B
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/unica" and [HTTP::cookie "UMPSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "UMPSESSIONID"]] 3600 }
pool Unica_Platform_Test
} elseif {[HTTP::uri] starts_with "/plan" and [HTTP::cookie "PLANJSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "PLANJSESSIONID"]] 3600 }
pool Unica_Plan_Test
} elseif {[HTTP::uri] starts_with "/campaign" and [HTTP::cookie "CAMPAIGNSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "CAMPAIGNSESSIONID"]] 3600 }
pool Unica_Campaign_Test
} elseif {[HTTP::uri] starts_with "/dashboard" and [HTTP::cookie "JSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "JSESSIONID"]] 3600 }
pool Unica_Campaign_Test
}
else {
{ [HTTP::cookie "UMPSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "UMPSESSIONID"]] 3600 }
pool Unica_Platform_Test
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie "JSESSIONID"] ne "" }{
persist add uie [string tolower [HTTP::cookie "JSESSIONID"]] 3600 }
} elseif { [HTTP::cookie "UMPSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "UMPSESSIONID"]] 3600 }
} elseif { [HTTP::cookie "PLANJSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "PLANJSESSIONID"]] 3600 }
} elseif { [HTTP::cookie "CAMPAIGNSESSIONID"] ne "" }{
persist uie [string tolower [HTTP::cookie "CAMPAIGNSESSIONID"]] 3600 }
}
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