Forum Discussion
Sven_89244
Nimbostratus
Aug 27, 2009Trying Cookie persistance
Hello to all,
I've trying to implement a cookie-based persistance.
The scenario is:
The client asks webserver with a /GET /es? and was balanced.
If they ask GET /hr...
Sven_89244
Nimbostratus
Aug 27, 2009Thanks Aaron,
so to avoid the mistake that the first persist causes an error, i've refined the rule to
...} elseif {
[HTTP::uri] contains "/hrs/"
} {
if {
[HTTP::cookie exist "bigippersistance"]
} {
pool test.hrpa.siemens.com
persist uie [HTTP::cookie bigippersistance] 14400
} else {
pool test.hrpa.siemens.com
persist none
}
} ...
but if I change according to your suggestion the line persist add uie [HTTP::cookie bigippersistance] 14400' line with 'persist cookie insert $cookie_name $timeout'
I get following
"Persistence mode (Cookie) called out in rule (URL_eshrs_Testif3) requires a corresponding persistence profile for virtual server (test.hrpa.siemens.com)."
So this means that i add a default persistance profile to the Server. This not desired. The cookie should only be set if the HTTP::response contains a header with "hrs"
What's the meaning of the message: TCL error: URL_eshrs_Testif - bad option "test.hrpa.siemens.com": must be any, virtual, service, or pool while executing "persist add uie [HTTP::cookie bigippersistance] 14400"
Sven
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
