Forum Discussion
hooleylist
Nov 06, 2007Cirrostratus
If you're setting the pool, you will need to get the user back to the same pool in your rule in order for persistence based on the pool members to work. Based on what you've posted so far, I assume the AB_test cookie will be sent in all requests.
Once you select the correct pool, you have two options. Deb posted some good info on this (Click here).
- You can configure a cookie insert profile with a default cookie name and not do anything with persistence in your rule.
- Or you can create a custom cookie insert persistence profile for the two pools. You could then specify a separate persistence profile per pool using the persist command (Click here) inside the block where you set the pool.
if { $qstring starts_with "A"} {
pool poolA
persist cookie insert poolA_cookie_persist
log local0. "send to poolA"
return
}
elseif { $qstring starts_with "B"} {
pool poolB
persist cookie insert poolB_cookie_persist
log local0. "send to poolB"
return
}
Aaron