Skip to Main Content

APEX

Announcement

Testing banner

ORA-20987: APEX - Access to session state is disabled

User_9ZFMEJun 20 2022

Hi all,
I need to create a session from outside APEX app using:
apex_session.create_session (p_app_id => 100, p_page_id => 1, p_username => 'uname');
but gave error:
ORA-20987: APEX - Access to session state is disabled, attempt to read/write was blocked. ORA-06512: at "APEX_210200.WWV_FLOW_ERROR", line 1069 ORA-06512: at "APEX_210200.WWV_FLOW_ERROR", line 1517 ORA-06512: at "APEX_210200.WWV_FLOW_SESSION_STATE", line 158 ORA-06512: at "APEX_210200.WWV_FLOW_SESSION_STATE", line 622 ORA-06512: at "APEX_210200.WWV_FLOW_SESSION", line 2258 ORA-06512: at "APEX_210200.WWV_FLOW_SESSION_API", line 63 ORA-06512: at line 4 ORA-06512: at "SYS.DBMS_SQL", line 1721 1. DECLARE 2. BEGIN 3. -- 1. Create an APEX Session.
I have tried to disable the Session State Protection in the App (Shared Component -> Session State Protection -> Disabled) but no luck.
APEX version: 21.02
Any replies will be much appreciated.

Thank you.
Ricky

This post has been answered by Ralf Mueller-Oracle on Jun 20 2022
Jump to Answer
Comments
Post Details
Added on Jun 20 2022
2 comments
157 views