Skip to content

Commit

Permalink
Path argument for delCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajnasz committed Aug 11, 2013
1 parent c94118b commit 48103cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ function setCookie(res, cookie, val, expiration, domain, secure, httpOnly, path)

var day = 60 * 60 * 24 * 1000;

function delCookie(res, cookie, domain, secure, httpOnly) {
function delCookie(res, cookie, domain, secure, httpOnly, path) {
"use strict";
// minus a day
setCookie(res, cookie, "", Date.now() - day, domain, secure, httpOnly);
setCookie(res, cookie, "", Date.now() - day, domain, secure, httpOnly, path);
}

exports.getCookie = getCookie;
Expand Down

0 comments on commit 48103cd

Please sign in to comment.