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

v1.18.x
Dravere 9 years ago committed by Julian Lam
parent ef4a94857d
commit 2fd6391081

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

Loading…
Cancel
Save