Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> how do you use OWA_COOKIE?

how do you use OWA_COOKIE?

From: <edwards_at_garland.dnr.state.sc.us>
Date: 1997/02/07
Message-ID: <32FB5A47.15FB@garland.dnr.state.sc.us>#1/1

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;

    exception when others then
    htp.bold(SQLERRM);htp.br;
    htp.htmlclose;
end set_get_cookie; Received on Fri Feb 07 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US