diff --git a/lib/middleware/session.js b/lib/middleware/session.js index 70126245e3..34cf50d097 100644 --- a/lib/middleware/session.js +++ b/lib/middleware/session.js @@ -7,5 +7,6 @@ module.exports = function(config) { name: 'unleash-session', keys: [config.secret], maxAge: config.sessionAge, + path: config.baseUriPath === '' ? '/' : config.baseUriPath, }); };