...
|
...
|
@@ -146,7 +146,9 @@ class AuthModel extends global.yoho.BaseModel { |
|
|
req.session.SESSION_KEY = sessionKey;
|
|
|
res.cookie('_SESSION_KEY', authcode(sessionKey, '_SESSION_KEY', 2592000000, 'encode'), {
|
|
|
domain: 'yohobuy.com',
|
|
|
expires: new Date(Date.now() + 2592000000) // 有效期一年
|
|
|
expires: new Date(Date.now() + 2592000000), // 有效期一年
|
|
|
httpOnly: true,
|
|
|
secure: true
|
|
|
});
|
|
|
userId.sessionKey = sessionKey;
|
|
|
}
|
...
|
...
|
|