Forum Discussion
abewu_915
Nimbostratus
Nov 15, 2007iRule not working when HTTP cookie header exceeds certain length?
Hello there,
I've got a simple iRule that
rewrites the "Cookie Insert" cookie domains by chopping off the first
part before the period (so the cookie domain "www.mydomain.com" bec...
hoolio
Cirrostratus
Nov 15, 2007First thing... you're using global variables (Ex: $::cookie_name) when it looks like the data is specific to the connection. Can you first try removing the :: from the variable names to use local variables (Ex: $cookie_name)?
Also, I don't think you need to save the name and value of the cookies and then re-insert them with the updated domain. You can just set the domain using: 'HTTP::cookie domain $cookie_name $my_domain'.
Lastly, do you have multiple pools that could be used per individual virtual server? ie, are you using another rule to select a pool? If not, you can get move the code from LB_SELECTED to HTTP_REQUEST to consolidate.
Can you retest with local variables and see if you still encounter the failure?
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
