From d68157faa8024a7d861ea09899957b5d883c5627 Mon Sep 17 00:00:00 2001 From: dead_horse Date: Mon, 13 Jan 2014 17:08:37 +0800 Subject: [PATCH] support custom session store, fixed #146 --- common/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/session.js b/common/session.js index 259b34577..85bcce59d 100644 --- a/common/session.js +++ b/common/session.js @@ -33,7 +33,7 @@ if (config.debug) { session = connect.session({ key: key, secret: config.sessionSecret, - store: new RedisStore(config.redis), + store: config.sessionStore || new RedisStore(config.redis), cookie: cookie, }); }