51.3 DETACH Procedure

This procedure detaches from the current session, resets the environment and runs the application's Cleanup PL/SQL Code. This procedure does nothing if no session is attached.

Syntax

APEX_SESSION.DETACH;

Example

Detach from the current session.

BEGIN
    apex_session.detach;
END;