Where's the APM session expiry time located?

On LTM 12.1, how do I query the current APM session expiry time in an iRule? ACCESS::session doesn’t seem to have an option for that and I can only see examples of people doing it in the terminal with sessiondump, which isn’t going to work for what I need here.

Hi Sam,

when ACCESS_ACL_ALLOWED {
    set inactivity [ACCESS::session data get "session.inactivity_timeout"]
}

Cheers,

Kees