Application Express User's Guide > Oracle Application Express ... > HTMLDB_CUSTOM_AUTH > GET_NEXT_SESSION&...
This function generates the next session ID from the Oracle Application Express sequence generator. This function returns a number.
Syntax
FUNCTION GET_NEXT_SESSION_ID RETURN NUMBER;