Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to get the cookie

nusa-JavaNetAug 20 2025 — edited Aug 20 2025

From the brower dev tool, the cookies is shown below :

I would like to get the value of cokkie by name 'lemonldap' using this ( APEX 23.2 ) :

-- Fetch and print the current cookies
owa_cookie.get_all (names ,vals ,n );
apex_debug.info ('===> owa_cookie get_all : [%s]' ,n);
for i in 1.. n loop

`apex_debug.info ('===> owa_cookie name  : [%s]' ,names(i));`  
`apex_debug.info ('===> owa_cookie value : [%s]' ,vals(i));`  

end loop;

cookie := owa_cookie.get('lemonldap');
for i in 1.. cookie.num_vals loop
apex_debug.info ('===> lemonldap value : [%s] ...' ,cookie.vals(i));
end loop;

but I can't. The value of n or cookie.num_vals is always zero, regardless the place where I put that code ( Before Header, Application Process, etc ).

Any idea why ?

Comments
Post Details
Added on Aug 20 2025
2 comments
65 views