10.7 IS_PUBLIC_USER Function
This function checks if the user is not authenticated in the session. Returns FALSE
if the user is already logged in or TRUE
if the user is not authenticated.
Syntax
APEX_AUTHENTICATION.IS_PUBLIC_USER
RETURN BOOLEAN;
Parameters
None.
Example
This example uses IS_PUBLIC_USER
to display either a notification if the user has not already logged in or the username if the user has not.
IF apex_authentication.is_public_user THEN
sys.htp.p('Please sign in');
ELSE
sys.htp.p(apex_escape.html(:APP_USER)||', you are known to the system');
END IF;
Parent topic: APEX_AUTHENTICATION