User:Mike Dillon/Scripts/cookies.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 30:
}
 
function deleteCookie(name, options) {
if (!options) options = {};
 
var epoch = new Date();
epoch.setTime(0);
options.expires = epoch;
return writeCookie(name, "", { expires: epoch });
 
return writeCookie(name, "", { expires: epoch }options);
}