10.9 LOGOUT Procedure
This procedure closes the session and redirects to the application's home page. Call this procedure directly from the browser.
Syntax
APEX_AUTHENTICATION.LOGOUT ( 
    p_session_id    IN NUMBER,
    p_app_id        IN NUMBER );Parameters
| Parameters | Description | 
|---|---|
| p_session_id | The Oracle APEX session identifier of the session to close. | 
| p_app_id | The database application identifier. | 
Example
This example logs the session out.
BEGIN
    apex_authentication.logout (
        p_session_id => :APP_SESSION,
            p_app_id => :APP_ID );
END;Parent topic: APEX_AUTHENTICATION