I am hoping to use a server cookie to select a pool based on matching data in the cookie. I would like to then use a BIG-IP Session Cookie to persist normally. Is there a better way to handle this? Will BIG-IP know what pool to use based on the session cookie? (The server cookie will contain site"x" along with other data and the TTL will be indefinite.)
The goal is to allow us to define which users get the updated site by defining them in the group new_site_users and still maintain persistence once they get there. We also want to trap users that are transacting with either the new site or the old site so they don’t switch if we update the new_site_user list while they are transacting.
when HTTP_REQUEST {
if {[HTTP::cookie exists “bigip_cookie”]{
persist my_defined_cookie-persist_profile
}
elseif {[HTTP::cookie exists “server_cookie”]}{
if { [matchclass [HTTP::cookie value “server_cookie”] contains $::new_site_users] } {
pool new_site_pool
}
else {
pool original_site_pool
}
}
}
Data Group new_site_users
siteA
siteB
siteC