Forum Discussion
tkarni_92568
Apr 29, 2008Historic F5 Account
Cookie persistence with path attribute
Hi,
The need is to use persistence only for URLs under the "/login/" directory.
All other requests should be load balanced (OneConnect is enabled on the VS).
The chosen method is cookie.
I t...
tkarni_92568
May 04, 2008Historic F5 Account
Thanks Colin.
I considered your suggestion, but anyway I have to use the string range since I want to set the cookie path with the same case variant as appears in the URI.
I compare the first 7 characters to "/login" in lower case, but it may be that the path is "/Login/". In that case, I have to get the first 7 characters from the URI and use them as the cookie path.
So I *have* to use string range...
Now the question is:
If I already have the 7 characters string, is it still "cheaper" to use the "starts_with" than the "eq"?
Is it the same cost to use the "starts_with" on the [HTTP::uri] as on the variable I created "$seven_chars_uri"?
Thanks,
Tom.
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