Forum Discussion
APM Policy Error when logging in "Session cannot be established"
Or could it be that the user bookmarked the logon and the bookmark is directly to the external logon page. If they do this and submit the form, APM won't have a session to associate to it and will issue this error message.
That was the case (and mystery) here. We found out that the user was clicking on a bookmark they had made.
- Mrk_Sep 14, 2016Nimbostratus
We're having the same issues for our websites. Our customers are from all around the country, we can't make them not bookmark the login page ;-). It's a very common thing to do, so I hope there's solution for this.
They load their bookmark and get to the login form. When they POST their info to the "my.policy", APM comes back with the error that no session exists.
Is there a way to create a new session on-the-fly when a user doesn't have one yet or anymore? And obviously, the request should still continue, otherwise they'd have to login _again_.
I don't think there's a setting for this, but I can imagine an iRule could possibly take care of this.
- Mrk_Sep 14, 2016Nimbostratus
Hm, I may have been able to solve this after all... I came accross this page: https://devcentral.f5.com/wiki/APM.AcceptPostedCredsfromExternalSite.ashx.
In that example, after the block that checks if the credentials are set, you get redirected to the "External Logon Page". Instead of that, I made an ending "Redirect" to this logon page with also closing the session.
Instead of POST-ing to "/my.policy" (which requires you to have a session), we post to the "/fake" and that way a new session will be created if it doesn't exist yet.
I need to check this thoroughly of course, but thought I'd share the approach here anyway.
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