10.6 IS_AUTHENTICATED Function
This function checks whether the user is authenticated in the current session and returns TRUE
if the user is already logged in or FALSE
if the user is not authenticated.
Syntax
APEX_AUTHENTICATION.IS_AUTHENTICATED
RETURN BOOLEAN;
Parameters
None.
Example
This example uses IS_AUTHENTICATED
to emit either the username if the user has already logged in or a notification if the user has not.
IF apex_authentication.is_authenticated THEN
sys.htp.p(apex_escape.html(:APP_USER)||', you are known to the system');
ELSE
sys.htp.p('Please sign in');
END IF;
See Also:
Parent topic: APEX_AUTHENTICATION