Authored by 陈峰

memcached session

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