Doesn't sound like this should have anything to do with authentication.
Landing page after login based on Shared components->Use interface settings (Home)
You might then redirect (with branches?) based on authorisation schemes. Redirection would be different for you whether they're on the desktop or mobile home page.
Thanks for the reply, I think I didn't explained things.
We have a custom authentication created for the Desktop Interface, wherein we redirect users to different pages with respect to there access rights.
So we don't have a single landing page, it depends on the users access rights.
That's why when user login with Mobile Interface as well they are getting redirected to the Desktop pages which is getting fetched in the custom authentication.
So what I need to understand is: is there a way I can understand in the custom authentication code if user has logged in with Mobile or Desktop Interface?
or do I need to create separate authentication for both the interfaces? I think this is not possible as we have single application for both the interfaces, your thoughts on this please.
Hope this is better now.
Please let me know if you need any further information.
So what mechanism are you currently using to redirect users?
Would knowing the :APP_PAGE_ID be useful - 101 vs 1001?
Here is some part of code which I am using in Custom Authentication:
if l_cnt = 0 then
select USER_ROLE_NAME into l_user_role from USER_TABLE where USER_ROLE = (select USER_ROLE from UACCESS where upper(LOGIN_NAME) = upper(:APP_USER));
owa_util.redirect_url('f?p='||:APP_ID||':2:' || :SESSION,false );
elsif l_cnt = 1 then
using owa_util package to redirect to certain page with respect to the user role.
Here only I want to know if I a user is logged in with Mobile interface or Desktop interface so that I will redirect according to that.
Or if you can suggest something else.
Take a look at this blog entry to determine if your client is running on a mobile device or desktop: Oracle &amp; Apex Geekery: &quot;Who are you?&quot; &#8211; client device Categorizr for APEX
Well I would think enquiring upon APP_PAGE_ID to tell you if you're on the mobile or desktop login page will answer your question? And you can redirect accordingly with some more if/then/else logic.