Forum Discussion
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
- JeffreyNimbostratus
I changed the session variable's name to .session.custom.uri, but I get the same result.
Is the name supposed to start with be session.custom.* for custom variables? https://techdocs.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm-config-11-4-0/apm_config_sessionvars.html
- JeffreyNimbostratus
HI Kevin,
I tried your suggestion but it didn't work.
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.
Recent Discussions
Related Content
* 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