You delete cookies by setting an expiration date that is a date prior to the date/time the cookie is being set. Or, set the cookie with no expiration date (in which case it will be deleted when the browser is closed).
The rest of this that question was answered by the POD for CGI::Cookie, already pointed out in a previous followup. I see within that documentation, examples of creating cookies, retrieving cookies (which is the first step toward checking for the existance of one), and (through setting expiration date) dismissing them.
|