'use strict';

var Cookies = require('cookies');

/**
 * Delete the token cookies that maintain a web session.
 *
 * @param {Object} req - The http request.
 * @param {Object} res - The http response.
 */
module.exports = function (req, res) {
  var config = req.app.get('stormpathConfig');
  var cookies = new Cookies(req, res);

  cookies.set(config.web.accessTokenCookie.name);
  cookies.set(config.web.refreshTokenCookie.name);
};

@@ -330,69 +330,261 @@
 %0A%0A  
-cookies.set(config.web.accessTokenCookie.name);%0A  cookies.set
+function deleteCookie(name, cookieConfig) %7B%0A    cookies.set(name, '', %7B%0A      domain: cookieConfig.domain,%0A      path: cookieConfig.path %7C%7C '/',%0A    %7D);%0A  %7D%0A%0A  deleteCookie(config.web.accessTokenCookie.name, config.web.accessTokenCookie);%0A  deleteCookie
 (con
@@ -614,14 +614,45 @@
 kie.name
+, config.web.refreshTokenCookie
 );%0A%7D;%0A

Fix stormpath/express-stormpath#155