I am using APEX 4.2 and I have created a custom login page and authenticating users in the custom login page. Once validating the user, i am redirecting them to home page manuallly. However, since my home page security says Authentication required it keeps sending me back to the login page. I tried using apex_util.set_authentication_result(0); to tell apex that the session is authenticated. It doesn't work. How can I resolve this issue?