Problem with owa_cookie.send and get
286300Mar 17 2008 — edited Mar 18 2008Hi,
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 ?