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, 
    p_ws_app_id in number default null );Parameters
Table 4-5 APEX_AUTHENTICATION.LOGOUT Procedure Parameters
| Parameters | Description | 
|---|---|
| 
                               
  | 
                           
                               The Application Express session identifier of the session to close.  | 
                        
| 
                               
  | 
                           
                               The database application identifier.  | 
                        
| 
                               
  | 
                           
                               The websheet application identifier.  | 
                        
Example
This example logs the session out.
apex_authentication.logout(:SESSION, :APP_ID);Parent topic: APEX_AUTHENTICATION