You can't do it for all cookies set at a given domain. You need to refer to each cookie by name and specify an Expired value that's in the past. If all of the cookies you set have a proper Expired time (if it needs one; session-only keys are quite useful), you don't have to worry about deleting it later. (Update: I guess that first sentence wasn't 100% accurate.. you *can* use the list of cookie names that the browser provided your script, but of course this will not include cookies that have a path specified that differs from where your script is located, or for cookies that are off-site.)

Of course, I'm assuming this is a Perl + CGI question.. If you're asking how to delete cookies on your local system, you'd need to iterate through the various files or folders where the cookies are stored and delete them from there. Each browser does it differently. If this is what you're asking for, perhaps somebody else has a better answer.


In reply to Re: delete cookies by Fastolfe
in thread delete cookies by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.