F5 APM redirect back to app on end of session
Hi F5 wizards,
I have an F5 version 12 with APM handling access to applications based on the uri:
For example:
- -> myapp1 server
- -> myapp2 server
- -> nothing useful
When a user's APM expires or ends in the middle of a user's session, the APM session will restart but kick them back to the "/" level instead of the "/myappX" they were working in. This obviously causes confusion and isn't a seamless experience.
Order of operations:
- User connects to
- APM session starts, user uses the awesome application
- User walks away for lunch, comes back, clicks a link, and the APM is expired
- They are redirected to the F5 "your session has ended, click here to start a new one"
- They go through the APM process again, this time, it takes them to
- They call me and complain about why they are not taken back to where they were or where they started :)
A few things i've considered/learned:
- I know I could but a generic "Sorry you're in the wrong spot" page on , but we have so many apps this doesn't flow well.
- The end of session APM irule events won't let me redirect anywhere (i assume its because its asynchronous), so I can't really reach back to the landing uri variable
- I could tear apart the F5 APM steps and try to inject cookies and all that to capture the "first page", but i've found that to be cumbersome and step all over the APM flow.
Has anyone dealt with this or come up with a nice way to send users back to where they were on the end of an APM session?
As always, I appreciate the conversation!
What you call the "first page" is called the landing uri and it is stored in a session variable called session.server.landinguri. So all you need to do is customize the session timeout page so that the link points to this session variable instead of the generic '/' base page.