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!

Problem with owa_cookie.send and get

286300Mar 17 2008 — edited Mar 18 2008
Hi,

I want to store some information of a application in a cookie . I use following code :

Process SEND COOKIE (on submit - after computations and validations, once per page visit)

begin
owa_util.Mime_header('text/html',FALSE);
owa_cookie.send(name => 'TA_FILTER_COOKIE'
,value => :P15_TA_FILTER
,expires => sysdate +365
);

);
exception when others then null;
end;

Process GET COOKIE ( on load , before header, once per page visit)

declare
cc owa_cookie.cookie;
begin
cc:=owa_cookie.get('TA_FILTER_COOKIE');
:p15_TA_FILTER:=cc.vals(1);
exception when others then null;
end;

This is the same code used in page 101 for the LOGIN_USERNAME_COOKIE which works fine. I can see the cookie when I explore the cookies in the browser. However the code above does not work. I can't see the cookie 'TA_FILTER_COOKIE'. What do I do wrong ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2008
Added on Mar 17 2008
3 comments
990 views