Forum Discussion
Simon_Wright_85
Nimbostratus
Jul 13, 2007iRule failing on earlier version of Big IP
Hi all
I am using the following iRule on an LTM running 9.4.0 without any problems but as soon as i use it on one thats running 9.2.3 i end up getting problems.
It compiles fine and i have ma...
Deb_Allen_18
Jul 17, 2007Historic F5 Account
I dont know why it only affected asp pages and not aspx but its working now and i am happy.Most likely they hit one of the conditions not containing that bad comparison. Glad I could help.
The way you are using the page_type variable is a recommended approach for saving request values for use in later events when they are no longer visible. Just make it a local variable by leaving off the leading "::" and it should work as expected.
Local variables are scoped to the connection, so they not only traverse events, but also multiple iRules processing the same connection. Global variables are shared across all rules, all connections. If the same global variable name is set multiple times (i.e. if you use the same varname in 2 iRules), the last value set will be the value the var holds.
So to avoid unintentional data sharing, never use a global variable for connection-specific data, and never use exactly the same global variable name in 2 iRules unless you intend it to be shared.
/deb
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