16.17 SESSION_ID_EXISTS Function
This function returns a Boolean result based on the global package variable containing the current Oracle APEX session ID. Returns TRUE if the result is a positive number; returns FALSE if the result is a negative number.
Syntax
APEX_CUSTOM_AUTH.SESSION_ID_EXISTS 
RETURN BOOLEAN;Example
The following example checks whether the current session ID is valid and exists.
DECLARE
    l_val BOOLEAN;
BEGIN
    L_VAL := APEX_CUSTOM_AUTH.SESSION_ID_EXISTS;
    IF l_val THEN
        htp.p('Exists');
    ELSE
        htp.p('Does not exist');
    END IF;
END;Parent topic: APEX_CUSTOM_AUTH