Forum Discussion
mpfeifer_63884
Nimbostratus
Nov 30, 2009cookie expire
Hi.
We'd like to change the expiration date of a Cookie when a client comes in with a certain Useragent-string.
Normally our users just get the default Cookie which expires after the session. ...
mpfeifer_63884
Nimbostratus
Dec 02, 2009It says:
"Dec 2 15:38:28 tmm tmm[1649]: 01220001:3: TCL error: nurago - can't use empty string as operand of "&&" while executing "if { [HTTP::cookie exists "Cookie_Test"] and [HTTP::cookie value "1768816906.20480.0000"] } { HTTP::cookie expires Cookie_Tes...""
This makes sense when I come with no cookie at all. So I added an "else" saying "use pool pool2". But still the same error (also in the ltm-log). Using the trial_and_error method I tool out the '[HTTP::cookie exists "Cookie_Test] and' to leave just one Testoperator, but then I get the following in the Logs:
"Dec 2 15:47:22 tmm tmm[1649]: 01220001:3: TCL error: nurago - expected boolean value but got "" while executing "if { [HTTP::cookie value "1768816906.20480.0000"] } { HTTP::cookie expires Cookie_Test 18144000 } else { use ...""
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
