Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Apex 21.1: how to redirect to specific page after login - i failed after attempt

SmithJohn45Nov 22 2021

in Oracle Apex i want to redirect users to their specific pages after login as per their user types. please help how i can do this. currently tried on Page 1 (Home) -> Before Header - Branches - Function Returning a Page (Show Only) and my code is as below. also Enabled deep linking through Shared Components -> Security Attributes.

declare
  x varchar2(5):=1;
  utype varchar2(100);
  myurl varchar2(255);
begin
  utype := APEX_UTIL.GET_SESSION_STATE('SESSION_USER_TYPE');
  if utype in ('admin', 'zoneadmin') then
       x := '1';
  elsif utype in ('rider') then
       x := '24';
  end if;
  return x;
end;

after login, google says: 
127.0.0.1 redirected you too many times.
try clearing your cookies 
ERR_TOO_MANY_REDIRECTS
even i removed all chrome cookies from settings. please help to overcome the situation.
regards

This post has been answered by fac586 on Nov 22 2021
Jump to Answer
Comments
Post Details
Added on Nov 22 2021
7 comments
9,471 views