Forum Discussion
Stanislas_Piro2
Dec 11, 2015Cumulonimbus
Hi,
You tried to do too much validation...
if the cookie was inserted, for the current request, you specified to not use it for persistence but to use the default one.
there was no issue for the current TCP connection because the default behavior is that profiles are assigned for the entire connection. But if the browser open a new connection, the persistence profile was not set with the expected one.
try this irule:
when HTTP_REQUEST {
if {[HTTP::path] starts_with "/uri1*"} {
pool POOL_URI1
persist cookie insert URI1
} else {
pool POOL_URI2
persist cookie insert URI2
}
}