...
|
...
|
@@ -29,7 +29,7 @@ function yohoSession(opts) { |
|
|
req.session = new memcachedSession.Session(req, req[opts.backSession].sessionBack);
|
|
|
req.session.cookie = new memcachedSession.Cookie({
|
|
|
domain: 'yohobuy.com',
|
|
|
httpOnly: false
|
|
|
httpOnly: true
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -63,7 +63,7 @@ module.exports = (app) => { |
|
|
},
|
|
|
cookie: {
|
|
|
domain: 'yohobuy.com',
|
|
|
httpOnly: false
|
|
|
httpOnly: true
|
|
|
},
|
|
|
store: new MemcachedStore({
|
|
|
hosts: config.memcache.session,
|
...
|
...
|
@@ -80,7 +80,8 @@ module.exports = (app) => { |
|
|
secret: '82dd7e724f2c6870472c89dfa43cf48d',
|
|
|
cookie: {
|
|
|
domain: 'yohobuy.com',
|
|
|
ephemeral: true
|
|
|
ephemeral: true,
|
|
|
httpOnly: true
|
|
|
}
|
|
|
}));
|
|
|
|
...
|
...
|
|