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 {$need_cookie == 1} { HTTP::cookie insert name "magicClientName" value "TM2003218" HTTP::cookie insert name "TM2003218" value $client_id..."
Any advice on this?
Is it because the need_cookie contains the special characters?
- nitassEmployeeIs it because the need_cookie contains the special characters?i do not think so.
- admin_xk_99638Nimbostratuswhen RULE_INIT {
- admin_xk_99638NimbostratusUpz..
- Moe_JartinCirrusIt 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.
- admin_xk_99638Nimbostratusif I insert set ::need_cookie below the set ::debug_mode 0 does it helps? Will it considered as setting it as global variable?
- nitassEmployeeshouldn't need_cookie be local variable rather than global one?
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