Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removal of old cookies now works correctly with FF

  • Loading branch information...
commit b2008a66e3b3ff6c33fae4f7d3ef7d5b19d56edd 1 parent b95d7ae
@MaxMotovilov authored
Showing with 6 additions and 2 deletions.
  1. +5 −1 lib/session.js
  2. +1 −1  package.json
View
6 lib/session.js
@@ -210,10 +210,14 @@ Cookie.prototype = {
} else
p = true;
+ var delete_cookie_options = connect.utils.merge( {}, this.$options.cookie );
+ delete_cookie_options.maxAge = 0;
+ delete_cookie_options.expires = new Date( 1 );
+
res.setHeader( 'Set-Cookie',
this.$remove.map( function( id ) {
return cookie.serialize(
- _this.$options.name + '.' + id, '', { expires: new Date( 0 ) }
+ _this.$options.name + '.' + id, '', delete_cookie_options
);
} )
);
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "galette",
- "version": "0.1.5",
+ "version": "0.1.6",
"description": "Encrypted cookies for session store, credential backup and single sign-on",
"author": {
"name": "Max Motovilov",
Please sign in to comment.
Something went wrong with that request. Please try again.