18.11 GET_USERNAME Function
This function returns user name registered with the current Oracle APEX session in the internal sessions table. This user name is usually the same as the authenticated user running the current page.
Syntax
APEX_CUSTOM_AUTH.GET_USERNAME
RETURN VARCHAR2;
Example
The following example retrieves the username registered with the current application session.
DECLARE
val varchar2(256);
BEGIN
val := apex_custom_auth.get_username;
END;
Parent topic: APEX_CUSTOM_AUTH