Forum Discussion

Vinne73's avatar
Vinne73
Icon for Cirrus rankCirrus
Oct 19, 2015

Go back in the APM flow, manipulate decision boxes

Sorry for asking yet another question, but this seems like it could be useful for other people too.

 

We have a multilingual company. Browser/User language isn't always the correct one.

 

So in our APM flow I implemented a "Choose language" decision box. Based on the choice I set session.ui.lang. Works great. I save this value in a cookie (only after APM is finished in the first triggered HTTP_response). Next time, I can bypass this language choice: if the cookie is present, I have a language I can show.

 

Now, I also added links on top of the APM pages with the languages.

 

The problem: I can't just change session.ui.lang and "refresh" the current page. There's no GOTO towards a decision box or whatever. What I do: I add links with a certain URI e.g. "/reset_sso/new_language=fr".

 

Then in HTTP_REQUEST, if the URI is /reset_sso/new_language=BLAH, I delete the APM session, then I do a HTTP::redirect to the original site, and I set a language cookie in the process. I use Multi domain SSO. Now, the original site sees no APM session, forwards me to the login page, language cookie can be read, it works! APM flow starts over in the changed language.

 

Is there no better way to do this? Can't I insert some link in my APM pages that just changes session.ui.lang, without for instance posting an Active Directory authentication form? Because if I'm on that page, adding a link to /my.policy submits the form.

 

tldr; How can I manipulate the APM flow. Like: "do this code, then go back to this point in the flow". Is it possible?

 

Thanks again Vincent

 

1 Reply

  • And also, is there a way to set cookies inside the APM flow without setting ACCESS::restrict_irule_events disable?