Forum Discussion
APM When ACCESS_session_close redirect
Hi everyone,
I am trying to figure it out how to do the following thing. I want to redirect my users when they reach their session timeout to an specific URL. For short story please review the irule below
For not so short story... Since my APM sessions are not triggered by a regular APM policy but from an iRule the policy has a Start-->Allow all and delegate the authorization to the irule based on the result of another VS-authentication server...long story.
My issue is that i cannot rely on detecting /my.policy or /vdesk.hangup* to redirect my users because they will be authorized and whenever i reach the timeout and they send traffic again.
I tried to use a redirect when the user request /my.policy or /vdesk.hangup but this never happen because APM does not send them there.
So, i was looking for something like this:
when ACCESS_SESSION_CLOSED {
HTTP::redirect https://new.redirect.com
}
but it seems that with that even you cannot redirect...any ideas? Thank you in advanced
- Stanislas_Piro2
Cumulonimbus
Hi,
you can do any redirect in ACCESS_SESSION_CLOSED event. this event is out of the HTTP session.
you can try to add a javascript to detect when the session is expired with the following solution:
https://devcentral.f5.com/questions/ltm-apm-session-expired-detection
to detect start of policy, you can filter it in ACCESS_SESSION_STARTED event.
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