aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-08-08 11:16:07 -0700
committerAdam Soltys <[email protected]>2014-08-08 11:16:07 -0700
commit163f681ff6d4d4eb2b111a6cdfa0e0133f6840ad (patch)
treea8ef0cd54f975b7ed9f78f8b2ce1487bb029fa15
parentf58904a6f9928685d9d33f7a8f96a5501bb5f6c2 (diff)
downloadcoinos-server-163f681ff6d4d4eb2b111a6cdfa0e0133f6840ad.tar.gz
coinos-server-163f681ff6d4d4eb2b111a6cdfa0e0133f6840ad.zip
Expire cookie after two weeks
-rw-r--r--app.js2
-rw-r--r--src/app.coffee2
2 files changed, 2 insertions, 2 deletions
diff --git a/app.js b/app.js
index 6302df7a..bd282be5 100644
--- a/app.js
+++ b/app.js
@@ -57,7 +57,7 @@
secret: 'weareallmadeofstars',
store: sessionStore,
cookie: {
- maxAge: 25920000000
+ maxAge: 1209600000
},
key: 'vanbtc.sid'
}));
diff --git a/src/app.coffee b/src/app.coffee
index 9d91f46a..94e0e4b3 100644
--- a/src/app.coffee
+++ b/src/app.coffee
@@ -24,7 +24,7 @@ app.use(bodyParser.urlencoded({ extended: true}))
app.use(bodyParser.json())
app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
app.use(cookieParser('weareallmadeofstars'))
-app.use(session(resave: true, saveUninitialized: true, secret: 'weareallmadeofstars', store: sessionStore, cookie: { maxAge: 25920000000 }, key: 'vanbtc.sid'))
+app.use(session(resave: true, saveUninitialized: true, secret: 'weareallmadeofstars', store: sessionStore, cookie: { maxAge: 1209600000 }, key: 'vanbtc.sid'))
app.use(passport.initialize())
app.use(passport.session())