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
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)
This 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.