APM Cannot Access Sesssion Variable Created by Irule

Hello,

I am trying to pass the uri from an irule to the APM via a session variable However, the APM cannot find the variable. Here is the statement to generate the session variable.

ACCESS::session data set session.user.custom.uri [HTTP::uri]

I can see the variable in the console in Access  ››  Overview : Active Sessions.

dbe31cda.session.user.custom.uri

I can also see it with the session dump command:

sessiondump --sid=dbe31cda | grep custom.uri

dbe31cda.session.user.custom.uri 18 /xxx/yyyy

However, the APM cannot find the variable.

variable “session.user.custom.uri” was not found in the local cache for session “dbe31cda”

‘getSessionVar()’: 594: try to get it from MEMCACHED

variable “session.user.custom.uri” for session “dbe31cda” was not found in MEMCACHED

Any ideas?

Jeffrey

It may be something to do with seperate memory spaces. In order to work around this I suggest you set it to a dummy value in APM then modify it with your iRule. I am sure someone else from say F5, will have more information on this.

HI Kevin,

I tried your suggestion but it didn’t work.

Is the name supposed to start with be session.custom.* for custom variables? Session Variables

I changed the session variable’s name to .session.custom.uri, but I get the same result.