Forum Discussion

jay_41157's avatar
jay_41157
Icon for Nimbostratus rankNimbostratus
Dec 09, 2009

Session Variable.

HI, I have: VS1 with an IRULE that looks at the uri, if URI matches then I use the Virtual command in the irule and call VS2, I want to be able to pass the URI that I am doing using sessions.

 

 

However I get the below error, any thoughts?

 

 

Thanks,

 

 

when HTTP_REQUEST {

 

set key "[IP::remote_addr]:[TCP::remote_port]"

 

set uri [HTTP::uri]

 

session add uie "$key any virtual" $uri

 

 

if { [HTTP::uri] starts_with "/CommonAssets/" } {

 

log local0. "*****DEBUG Line ONE [HTTP::uri]"

 

virtual my_http_vs

 

set key "[IP::remote_addr]:[TCP::remote_port]"

 

set uri [session lookup uie "$key any virtual"]

 

}

 

 

Dec 9 09:47:35 tmm tmm[30856]: 01220001:3: TCL error: my_irule - Prerequisite operation not in progress (line 1) invoked from within "session lookup uie "$key any virtual""

 

 

1 Reply

  • Can you try changing any virtual to any pool? Also, can you clarify which code is running on which VIP and why you're changing the URI?

     

     

    Thanks,

     

    Aaron