From 093a71867718552d24b46d9f3f0570eb790457c0 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 9 Jan 2018 15:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0session=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E6=94=B9=E4=B8=BA1=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- public/views/login.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 88d3f37..60826b6 100644 --- a/app.js +++ b/app.js @@ -34,7 +34,7 @@ app.use(session({ saveUninitialized: true, // secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串 cookie: { - maxAge: 30 * 24 * 60 * 60 * 1000, // 一个月 + maxAge: 1 * 24 * 60 * 60 * 1000, // 一天 }, store: new mongoStore({ url: 'mongodb://localhost/mybookmarks' diff --git a/public/views/login.html b/public/views/login.html index 0524933..ab4a416 100644 --- a/public/views/login.html +++ b/public/views/login.html @@ -18,7 +18,7 @@ -
+