Forum Discussion
admin_xk_99638
Mar 13, 2012Nimbostratus
can't read "need_cookie": no such variable
Hi All, Encounter the following errors.
Mar 9 10:00:01 local/tmm err tmm[4875]: 01220001:3: TCL error: MAGIC-iRules - can't read "need_cookie": no such variable while executing "if {$n...
Moe_Jartin
Mar 14, 2012Cirrus
It looks like you are only setting the need_cookie variable under certain conditions. So on any requests where those conditions are not met the variable $need_cookie is not set.
You need to ALWAYS set the need_cookie variable to some value (like at the top of the irule where you are setting the other variables) since you are calling for it unconditionally under the HTTP_RESPONSE event. Hope that makes sense.
-Joe
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