38.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

PROCEDURE DETACH;

Example

Detach from the current session..

begin
    apex_session.detach;
end;