Forum Discussion
3 Replies
Sort By
- hooleylistCirrostratusHi J,
when HTTP_REQUEST { if {$some_check==1}{ set check_response 1 } else { set check_response 0 } } when HTTP_RESPONSE { if {$check_response==1}{ do something } }
- JSpartan0901_95NimbostratusThanks, Aaron. I am novice in iRules.
- hooleylistCirrostratusYes, local variables are tied to a connection. Global variables (those set using 'set ::my_var value' in any non-RULE_INIT event or those set as 'set my_var value' or 'set ::my_var value' in RULE_INIT) are available across all connections. SMP summarized this nicely in this post. It's relevant for v10 and v11.