Check if user is logged in

Check if a user is logged into APEX, or whether they are visiting as a public user.

This is the underlying PLSQL that the built in APEX condition called “User is the public user (user has not authenticated)” uses.

if apex_application.public_role_check (
p_role => ‘MUST_NOT_BE_PUBLIC_USER’ )
then
— session is authenticated
end if;

Leave a Reply

Your email address will not be published. Required fields are marked *