Authored by 陈峰

memcached session

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -63,9 +63,9 @@ app.use(MemcachedSession({ // eslint-disable-line
saveUninitialized: true,
unset: 'destroy',
secret: '82dd7e724f2c6870472c89dfa43cf48d',
name: 'yohoblk-session',
name: 'yohoblk_session',
cookie: {
domain: 'yohoblk.com',
domain: config.cookieDomain,
httpOnly: false
},
store: new MemcachedStore({
... ... @@ -79,7 +79,7 @@ app.use(MemcachedSession({ // eslint-disable-line
app.use(CookieSession({ // eslint-disable-line
requestKey: 'session2',
cookieName: 'yohoblk-session',
cookieName: 'yohoblk_session_cookie',
secret: '82dd7e724f2c6870472c89dfa43cf48d',
cookie: {
domain: config.cookieDomain,
... ...