Re: owa_cookie.remove does not work!

From: Frank van Bortel <fbortel_at_home.nl>
Date: Thu, 11 Oct 2001 21:45:42 +0200
Message-ID: <3BC5F6E6.F893261_at_home.nl>


nutron wrote:
>
> hi!
> how can i remove the cookie and reset its value?
> this is what i did but it does not work. any suggestions?
>
> i set cookie like this
>
> owa_util.mime_header('text/html',FALSE);
> owa_cookie.send('mycookie',to_char(5));
> owa_util.http_header_close;
>
> to retrive the cookie value,
>
> l_mycookie owa_cookie.cookie;
> l_mycookie := owa_cookie.get('mycookie');
> if l_mycookie.num_vals > 0 then
> value_of_cookie := l_mycookie.vals(1);
> end if;
>
> later to remove the cookie,
> owa_util.mime_header('text/html',FALSE);
> owa_cookie.remove('mycookie',to_char(5));
> owa_util.http_header_close;
>
> now, after this point i expect that mycookie's value array is zero.
> but, if i retirve mycookie again and read the value,i see that
> its array size is still 1 and its holding the value 5 !
>
> what am i doing wrong?
>
> thanks.
> nutron.

I'll give you a dime when I wave a red flag. (wave red flag; dime given).
remove red flag
wave hands

Question: why do you still have the dime? Same answer applies to your question - you did not erase the dime, sorry array.

-- 
Gtrz,

Frank van Bortel
Received on Thu Oct 11 2001 - 21:45:42 CEST

Original text of this message