Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
7 years ago
Commit
fd390a00fc62e313905e9383bc0734deb4957315
1 parent
8f7b0a0b
memcached 挂掉的时候复用sessionID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
doraemon/middleware/yoho-session.js
doraemon/middleware/yoho-session.js
View file @
fd390a0
...
...
@@ -25,7 +25,7 @@ function yohoSession(opts) {
res
.
emit
(
'sessionError'
);
req
.
sessionError
=
true
;
req
.
sessionID
=
uuid
.
v4
();
req
.
sessionID
=
req
.
sessionID
||
uuid
.
v4
();
req
.
session
=
new
memcachedSession
.
Session
(
req
,
req
[
opts
.
backSession
].
sessionBack
);
req
.
session
.
cookie
=
new
memcachedSession
.
Cookie
({
domain
:
'yohobuy.com'
,
...
...
Please
register
or
login
to post a comment