Forum Discussion
Thomas_Laubrock
Nimbostratus
Sep 05, 2005Scope of variables
Hi *,
What scope does variables have in iRules.
If I define a var in a http_request event is the var valind in the http_resonse? Is this the case regardless I use one connect or something like this.
Is it possible to define vars to a persistent sessions, so I can transfer data beween two http requests?
Bye
Thomas
- Suwitcha_Musij2
Nimbostratus
A common misunderstanding, however, is that the variable does not persist across requests from the same client made on different connections. - unRuleY_95363Historic F5 AccountThis is what we added the "session" command for. It takes an arbitrary data value and actually stores it in a persistent table, so you can store data across "sessions". It basically takes the same form as the "persist" command.
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