From 2066d7e1b99abfa134807d8d86828131a82a67a2 Mon Sep 17 00:00:00 2001 From: vfasky Date: Tue, 9 Sep 2014 18:13:57 +0800 Subject: [PATCH] =?UTF-8?q?session=20=E7=9A=84=E8=BF=9E=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E6=88=90=E8=AF=BB=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 3a25606..15ccef9 100644 --- a/app.js +++ b/app.js @@ -64,7 +64,8 @@ app.use(session({ secret: config.session_secret, key: 'sid', store: new MongoStore({ - db: config.db_name + db: config.db_name, + url: config.db }), resave: true, saveUninitialized: true,