Authored by xuhongyun

add yohobuy.com domain

... ... @@ -12,8 +12,8 @@ var grayroute = require("./mid/grayrouter");
/*session 配置*/
var options = {
secret: 'yohobuy.portal', //session配置
cookie: {secure: false, maxAge: 7200000},
// cookie: {secure: false, maxAge: 7200000, domain: '.yohobuy.com'},
// cookie: {secure: false, maxAge: 7200000},
cookie: {secure: false, maxAge: 7200000, domain: '.yohobuy.com'},
resave: false,
saveUninitialized: true,
rolling: true
... ... @@ -76,13 +76,13 @@ var apiCofig = {
});
}
if(process.env.NODE_ENV==="gray"){
options.cookie.domain = '.yohops.com';
}
if(process.env.NODE_ENV==="production"){
options.cookie.domain = '.yohobuy.com';
}
// if(process.env.NODE_ENV==="gray"){
// options.cookie.domain = '.yohops.com';
// }
//
// if(process.env.NODE_ENV==="production"){
// options.cookie.domain = '.yohobuy.com';
// }
app.use(session(options));
},
... ...
... ... @@ -12,8 +12,8 @@ var grayroute = require("./mid/grayrouter");
/*session 配置*/
var options = {
secret: 'yohobuy.portal', //session配置
cookie: {secure: false, maxAge: 7200000},
// cookie: {secure: false, maxAge: 7200000, domain: '.yohobuy.com'},
// cookie: {secure: false, maxAge: 7200000},
cookie: {secure: false, maxAge: 7200000, domain: '.yohobuy.com'},
resave: false,
saveUninitialized: true,
rolling: true
... ... @@ -76,13 +76,13 @@ var apiCofig = {
});
}
if(process.env.NODE_ENV==="gray"){
options.cookie.domain = '.yohops.com';
}
if(process.env.NODE_ENV==="production"){
options.cookie.domain = '.yohobuy.com';
}
// if(process.env.NODE_ENV==="gray"){
// options.cookie.domain = '.yohops.com';
// }
//
// if(process.env.NODE_ENV==="production"){
// options.cookie.domain = '.yohobuy.com';
// }
app.use(session(options));
},
... ...