Skip to content

Instantly share code, notes, and snippets.

@tj
Created September 3, 2010 17:30
Show Gist options
  • Select an option

  • Save tj/564226 to your computer and use it in GitHub Desktop.

Select an option

Save tj/564226 to your computer and use it in GitHub Desktop.
diff --git a/lib/connect/middleware/session.js b/lib/connect/middleware/session.js
index a83cb16..7d1c17c 100644
--- a/lib/connect/middleware/session.js
+++ b/lib/connect/middleware/session.js
@@ -32,7 +32,7 @@ exports = module.exports = function sessionSetup(options){
var key = options.key || 'connect.sid';
// Default memory store
- var store = options.store || new (require('./session/memory'));
+ var store = exports.store = options.store || new (require('./session/memory'));
// Used to verify session ids / defaults to user agent
var fingerprint = options.fingerprint || function fingerprint(req) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment