user logon name determines the page that opens, how can I achieve this?

I have the basic 101 for all users login page.

Once the user logs on, if the username is "guest", I would like to open page 2006. If the user name is 'Member', I would like to open page 2001.

Or another way to look at it with privileges. The guest has the privilege of 'Edit', the Member has the privilege of "administrator."

So, if a client connects to the 101 page, the application sees the privilege of 'Edit' and opens the 2006 page.

If a member connects to the 101 page, the application sees the 'administrator' privilege and opens the 2001 page.

Can someone tell me how I can accomplish this? Maybe is there another way that might be better to achieve this?

Thank you
Maggie

This city offers is the right idea, but you must also disable deep linking. So here's how I'd do:

1 create a PL/SQL process on the login page that fires before the login process that contains a statement:

: FSP_AFTER_LOGIN_URL: = null;

2. change the connection process

declare l_page varchar2(30);beginif :P101_USERNAME = 'guest' then l_page := '2006';elsif :P101_USERNAME = 'member' then l_page := '2001';else l_page := '1'; -- default home pageend if;wwv_flow_custom_auth_std.login(    P_UNAME       => :P101_USERNAME,    P_PASSWORD    => :P101_PASSWORD,    P_SESSION_ID  => v('APP_SESSION'),    P_FLOW_PAGE   => :APP_ID||':'||l_page    );end;

3. create permission schemes to prevent some users from pages that they are not allowed to use.

Of course the test for specific usernames in the code above could be made more generic by taking the username and determine which group he belongs and assigning after correct connection based on the Group page.

Scott

Tags: Database

Similar Questions

Maybe you are looking for