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

@ -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,

Loading…
Cancel
Save