Showing
1 changed file
with
1 additions
and
1 deletions
@@ -41,7 +41,7 @@ app.use(bodyParser.json()); | @@ -41,7 +41,7 @@ app.use(bodyParser.json()); | ||
41 | app.use(bodyParser.urlencoded({extended: false})); | 41 | app.use(bodyParser.urlencoded({extended: false})); |
42 | app.use(cookieParser()); | 42 | app.use(cookieParser()); |
43 | app.use(session({ | 43 | app.use(session({ |
44 | - secret: 'nothing', // 兼容 PHP SESSION,session 不加密 | 44 | + secret: 'nothing', // 兼容 PHP SESSION,sessionID 不加密 |
45 | name: 'PHPSESSID', // 兼容 PHP SESSION | 45 | name: 'PHPSESSID', // 兼容 PHP SESSION |
46 | genid: () => { | 46 | genid: () => { |
47 | return uuid.v4(); // 兼容 PHP SESSION | 47 | return uuid.v4(); // 兼容 PHP SESSION |
-
Please register or login to post a comment