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
2 Replies
- Suwitcha_Musij2
Nimbostratus
A common misunderstanding, however, is that the variable does not persist across requests from the same client made on different connections.
From your message above regarding misunderstanding of varialbe persist. Is there any method to make parameter value persist for using with next session? (with persist lookup commend) - 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.
Ie, "session add ..." and "session lookup ...". There should be some examples using these commands already in the forum if you search for them.
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
