Forum Discussion

sarat_82132's avatar
sarat_82132
Icon for Nimbostratus rankNimbostratus
Jun 01, 2015

Persist Variables Between multiple Irules

Hello :

 

I have a quick question. I want to set a value to one variable in one Irule ( HTTP_REQUEST) and retreive the value in another Irule. I could not figure out a way for this. the only option that comes to my mind is using request header.

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Sarat,

     

    You can create a global variable, based on something, and then call this in another irule. Take care, however, and ensure it's a static global variable. See the following for more details irules-101-variables

     

    Hope this helps,

     

    N