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...
hoolio
Cirrostratus
Aug 28, 2009Hi Sven,
I'm not sure I follow your exact logic for when to apply persistence. It looks like you want to only use persistence if the server sets an HTTP header in the response named context with a value that contains "env=hrs". The cookie will then be presented by the client on every request until it expires. I assume the client won't be including a "context" header, so you'll not be able to selectively apply persistence only when the client has just previously received a response with the context header.
So I think you'd get the same functionality by just specifying cookie insert peristence from the iRule on requests to URIs containing "/hrs/".
Rereading the TCL runtime error, I'm not sure exactly what it's indicating. I think the value of the persistence cookie should be a single string, but it seems that it might have spaces in it which aren't being handled by the persist command. If you do want to use this approach, can you log the cookie value before trying to use it in the HTTP_RESPONSE event to persist?
log local0. '\[HTTP::cookie bigippersistance\]: [HTTP::cookie bigippersistance]"
Aaron
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
