Forum Discussion
Landing URI iRule HTTP redirection
- Jul 20, 2016
Managed to solve the issue without the iRule or Variable assignment to session.server.landinguri.
All I needed to do was created a Redirect ending and it performs the redirect to the beginning of the policy with the desired uri appended to the end and closes the existing session.
Perfect!
You don't need any irules to do this.
APM sets a variable called "session.server.landinguri" that contains the URI that the client requested at the very start of the session. At the end of the session (in LTM+APM mode), it will redirect to that URI. And you can override this session variable by just setting it to whatever you want.
The irule you've got isn't really the best way to do it. You don't need to remove the session and redirect the user, instead just set session.server.landinguri and the user will be automatically redirected once the policy is complete.
- shopkeeper56_23Jul 19, 2016Cirrostratus
I see what your saying. Sounds a lot simpler. I will test this when I'm back at my desk and report back.
- shopkeeper56_23Jul 20, 2016Cirrostratus
Lucas - So I tried your method. I have a logon page with radio buttons to determine the uri to redirect to. The after this step I perform a variable assign to session.server.landinguri which then leads to the end of the policy with an allow. I can see the uri is being applied but the page fails to load. Do I need to configure some kind of apm session restart as part of this process?
- shopkeeper56_23Jul 20, 2016Cirrostratus
I figured out how to do it! See Answer
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