There are several scenarios where we might want to conditionally redirect users in SignOn PeopleCode. We cannot use the %Response.RedirectURL(location) method to achieve this because it does not work in SignOn PeopleCode.
There is a delivered function called SetAuthenticationResult which can be used for redirecting users in SignOn PeopleCode. Here is how we can use this feature (not very well documented in PeopleBooks):
E.g.: SetAuthenticationResult( False, &userid, &redirectURL, False);
Note: For this redirect to work, we need to change your Web Profile Configuration > Look and Feel (Tab):
Set Signon Result Doc Page to signonresultdocredirect.html
Information from Help:
Note: The web server(s) needs to be restarted for any changes in the web profile to take effect.
P.S.: This post is based on my response to a question in OTN.
There is a delivered function called SetAuthenticationResult which can be used for redirecting users in SignOn PeopleCode. Here is how we can use this feature (not very well documented in PeopleBooks):
E.g.: SetAuthenticationResult( False, &userid, &redirectURL, False);
Note: For this redirect to work, we need to change your Web Profile Configuration > Look and Feel (Tab):
Set Signon Result Doc Page to signonresultdocredirect.html
Information from Help:
Note: The web server(s) needs to be restarted for any changes in the web profile to take effect.
P.S.: This post is based on my response to a question in OTN.

