Forum Discussion
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 }
}