Forum Discussion
Using "table" iRule command inside the ACESS_SESSION_CLOSED APM event
This article doesn't have a whole lot of information, but it seems like what you have should be working to me (with the limited amount of knowledge I have about the system).
I would think you'd be ok here but something to think about: "Important: This event is triggerred outside of flow context (similar to RULE_INIT) when a session goes away. The iRule commands which require a flow context (for e.g. TCP, HTTP and SSL commands) can not be used in this event."
If you use a subtable does it make a difference? If we're going down the bug path... then little changes like this might get you around that. Not saying it's a bug... but if it is, then perhaps this may help.
when ACCESS_SESSION_STARTED {
if { [table lookup -notouch -subtable "toto"] != {} } {
log local0. "found !"
} else {
log local0. "not found !"
}
}
when ACCESS_SESSION_CLOSED {
table add -subtable "toto" "data" 1800
log local0. "adding toto to the shared table !"
}
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