[prog] cookies

Douglas Hunter dug at plusthree.com
Fri May 14 12:22:44 EST 2004


Becky L. Norum wrote:
> Is there any way of removing a cookie from a browser before the browser is
> closed?  

I don't believe so.

I know that if you set the expiration date to an earlier date it
> will delete the cookie when the browser is closed.
> 

Another thing that you can do is set the cookie value to an empty 
string.  It still won't remove the cookie (unless the browser 
implementation removes cookies set that are set with an expired 
expiration date), but it should over-write the prior value.

> Thanks,
> 
> Becky

-- Douglas Hunter


More information about the Programming mailing list