Forum Discussion
Lukasz_01_15307
Sep 13, 2016Nimbostratus
irule executes twice when refreshing a website
Hello.. I have a really odd problem, my irule script works exactly every second time. I'm working with APIs and on the backend, they are setup to use apiName.example.com/api/id. For the real world, W...
- Sep 13, 2016
Try unsetting your variables at the end of the iRule? Specifically...
unset $newSubdomain
ekaleido
Cirrus
Try unsetting your variables at the end of the iRule? Specifically...
unset $newSubdomain
Lukasz_01_15307
Sep 13, 2016Nimbostratus
the error was
warning: [variable reference used where variable name expected][$newSubdomain]
so I changed
unset $newSubdomain
to
unset newSubdomain
and it seems to be working.
Thanks! 🙂
a question... Why would irule require a variable to be unset? shouldn't all local variable be unset at the end of the script? as far as I know this is a local variable...
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