Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> how do you use OWA_COOKIE?
I created this procedure that sets a cookie and gets the cookie using the OWA_COOKIE package. But when I load it from netscape 3.0 I get the message 'document contains no data' and the web listener dies.
whats wrong?
procedure set_get_cookie is
lnames owa_text.vc_arr;
lvals owa_text.vc_arr;
lnum_vals integer;
lcookie owa_cookie.cookie;
ldate date;
lremote_addr varchar2(35);
begin
lcookie.name := 'test';
lcookie.vals(0) := 'testval';
ldate := sysdate+10;
lremote_addr := '000.000.000.000';
owa_util.mime_header('text/html', FALSE); owa_cookie.send(lcookie.name,lcookie.vals(0),ldate,'testpath',lremote_addr,NULL);
htp.htmlopen;
lcookie := owa_cookie.get(lcookie.name);
htp.print('name:'||lcookie.name);htp.br; htp.print('value:'||lcookie.vals(0));htp.br; htp.htmlclose;