Forum Discussion
Neil_66348
Nimbostratus
Dec 14, 2012Singular Cookie Insert
Hi Guys ,
A really easy one i'm sure for someone with good iRules knowledge.
We have a cookie rule which performs a simple insert for a HTTP Cookie
when HTTP_RESPONSE {
H...
Neil_66348
Nimbostratus
Dec 14, 2012Hi Steve ,
Made one change on bracket , to get it save.
when HTTP_RESPONSE {
if { [HTTP::cookie exists "Zend"] }{
Do nothing
return }
elseif { $cookiecount equals 1 } {
Do nothing
return }
else {
HTTP::cookie insert name BIGDC value 1
set cookiecount 1 }
}
What odd , all appeared well with Google Chrome , but it broke the page with IE 9 and 10.
LTM also logs :
TCL error: /Jet2Reservations/AddCookie3 - can't read "cookiecount": no such variable while executing "if { [HTTP::cookie exists "Zend"] }{ Do nothing return } elseif { $cookiecount equals 1 } { Do nothing return } else { HTTP::cookie i..."
I can get is means we need to set a variable....any help really appreciated....
Thanks
Neil
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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