Skip to content
Snippets Groups Projects
Commit 5141c0ce authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

change session duration from four hours to 1 week. related to issue #74

parent e318429d
No related branches found
No related tags found
No related merge requests found
...@@ -166,11 +166,13 @@ exports.setup = function(server) { ...@@ -166,11 +166,13 @@ exports.setup = function(server) {
secret: COOKIE_SECRET, secret: COOKIE_SECRET,
key: COOKIE_KEY, key: COOKIE_KEY,
cookie: { cookie: {
path: '/', path: '/',
httpOnly: true, httpOnly: true,
maxAge: 14400000, // IMPORTANT: we allow users to go 1 weeks on the same device
secure: overSSL // without entering their password again
} maxAge: (7 * 24 * 60 * 60 * 1000),
secure: overSSL
}
}); });
// cookie sessions // cookie sessions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment