Beinhard_8950
Nov 22, 2011Nimbostratus
Redirect based on URL, Cookie problem.
Hi,
I have a VS that has it´s default pool.
The VS has cookie insert has persistence.
I have made a "redirection" based on a Uri with this Irule.
when HTTP_REQUEST {
if { [string match "*/xxxxxxxxx/yyyyyy*" [string map {. ""} [HTTP::request]]] } {
pool xxxyyyy
} else {
pool default
}
}
So the client flow is this:
The Client goes to the vs, authenticated and are logged in.
They have got the cookie (traffic flows to a node in default pool).
when they go to am speciell link at the site they will hit the irule and can then upload a document (pool xxxyyyy.
The problem is that when they "go back" (uploaded the file is done) to the default pool the cookie value has changed becasue they have visiting the pool "xxxyyyy so now they don´t hit the webserver they where on before.
Persistency has failed so the user is logged out.
How can I fix this?
ps. persistency on the pool xxxyyyy is not mandatory but can be an option.
Regards,
Beinhard