10.4 GET_COOKIE_PROPS Procedure
This procedure obtains the properties of the session cookie used in the current authentication scheme for the specified application. These properties can be viewed directly in the App Builder by viewing the authentication scheme cookie attributes.
Syntax
APEX_CUSTOM_AUTH.GET_COOKIE_PROPS(
    p_app_id                       IN  NUMBER,
    p_cookie_name                  OUT VARCHAR2,
    p_cookie_path                  OUT VARCHAR2,
    p_cookie_domain                OUT VARCHAR2
    p_secure		                       OUT BOOLEAN);
Parameters
Table 10-3 GET_COOKIE_PROPS Parameters
| Parameter | Description | 
|---|---|
| 
 | An application ID in the current workspace. | 
| 
 | The cookie name. | 
| 
 | The cookie path. | 
| 
 | The cookie domain. | 
| 
 | Flag to set secure property of cookie. | 
Example
The following example retrieves the session cookie values used by the authentication scheme of the current application.
DECLARE
    l_cookie_name   varchar2(256);
    l_cookie_path   varchar2(256);
    l_cookie_domain varchar2(256);
    l_secure        boolean;
BEGIN
    APEX_CUSTOM_AUTH.GET_COOKIE_PROPS(
        p_app_id => 2918,
        p_cookie_name => l_cookie_name,
        p_cookie_path => l_cookie_path,
        p_cookie_domain => l_cookie_domain,
        p_secure => l_secure);
END;
Parent topic: APEX_CUSTOM_AUTH