diff --git a/ghost/admin/app/session-stores/application.js b/ghost/admin/app/session-stores/application.js index e701240e4f..61920f330c 100644 --- a/ghost/admin/app/session-stores/application.js +++ b/ghost/admin/app/session-stores/application.js @@ -1,6 +1,10 @@ import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive'; +import ghostPaths from 'ghost/utils/ghost-paths'; + +const paths = ghostPaths(); +const keyName = `ghost${(paths.subdir.indexOf('/') === 0 ? `-${paths.subdir.substr(1)}` : ``) }:session`; export default AdaptiveStore.extend({ - localStorageKey: 'ghost:session', - cookieName: 'ghost:session' + localStorageKey: keyName, + cookieName: keyName });