Made the session cookie aware of the possible relative path (#4663)

This commit is contained in:
Dravere
2016-05-18 18:43:46 +02:00
committed by Julian Lam
parent ef4a94857d
commit 2fd6391081

View File

@@ -62,6 +62,10 @@ module.exports = function(app) {
if (nconf.get('secure')) {
cookie.secure = true;
}
if (relativePath !== '') {
cookie.path = relativePath;
}
app.use(session({
store: db.sessionStore,