Hello All
Anyone of you can u plz tell me how i can use this Package to send and reterieve cookies,i have a page like this say
<%@ page language="PL/SQL" %>
<%@ plsql procedure="first_page" %>
<%
begin
owa_util.mime_header('text/html', FALSE);
owa_cookie.send('ITEM1','SOCKS');
owa_cookie.send('ITEM2','SHOES');
owa_util.http_header_close;
end;

%>
From this page i am calling another proc second_page there i am putting code like this
declare
current_cookie_names OWA_COOKIE.vc_arr;
current_cookie_vals OWA_COOKIE.vc_arr;
n INTEGER DEFAULT 0;
BEGIN
-- Fetch and print the current cookies
OWA_COOKIE.get_all (
current_cookie_names,
current_cookie_vals,
n
);
htp.print(n);
FOR i IN 1 .. n
LOOP
HTP.print ('' || current_cookie_names (i) || ':');
HTP.print ('' || current_cookie_vals (i) || '

');
END LOOP;
exception
when others then
htp.print(sqlerrm);
end;
but i am getting value of n as 0.Can you plz tell me where i am wrong.