12.14 LOGOUT Procedure [DEPRECATED]
Note:
This procedure is deprecated. Use APEX_AUTHENTICATION.LOGOUT instead.
                     
This procedure causes a logout from the current session by unsetting the session cookie and redirecting to a new location.
Syntax
APEX_CUSTOM_AUTH.LOGOUT(
    p_this_app                   IN VARCHAR2  DEFAULT NULL,
    p_next_app_page_sess         IN VARCHAR2  DEFAULT NULL,
    p_next_url                   IN VARCHAR2  DEFAULT NULL);
Parameter
Table 12-6 LOGOUT Parameters
| Parameter | Description | 
|---|---|
| 
 | Current application ID. | 
| 
 | Application and page number to redirect to. Separate multiple pages using a colon (:) and optionally followed by a colon (:) and the session ID (if control over the session ID is desired). | 
| 
 | URL to redirect to (use this instead of  | 
Example
The following example causes a logout from the current session and redirects to page 99 of application 1000.
                  
BEGIN
    APEX_CUSTOM_AUTH.LOGOUT (
        p_this_app            => '1000',
        p_next_app_page_sess  => '1000:99');
END;Parent topic: APEX_CUSTOM_AUTH