How To Delete A Cookie Using Perl CGI.pm Or jQuery

Using CGI.pm
1 2 3 4 5 6 |
$cookie = cookie( -name=>'ExampleCookieToDelete', -value=>'', -expires=>'-1d' ); print header(-cookie=>$cookie); |
Using jQuery and jquery.cookie.js
1 |
jQuery.cookie('ExampleCookieToDelete', null); |