mongoose express sessions:使用Mongoose进行Express会话存储 源码
猫鼬表达会议 猫鼬的快速会话存储 用法 const mongoose = require ( 'mongoose' ) const express = require ( 'express' ) const session = require ( 'express-session' ) const StoreSession = require ( "mongoose-express-sessions" ) ( session ) mongoose . connect ( ) app . use ( session ( { secret : 's3cr37' , cookie : { maxAge : 1000 * 60 * 60 * 24 * 7 } , store : new StoreSession ( { dbname : "MyDB" ,
文件列表
mongoose-express-sessions-master.zip
(预估有个6文件)
mongoose-express-sessions-master
index.js
4KB
package.json
754B
LICENSE
11KB
package-lock.json
23KB
.gitignore
2KB
README.md
498B
暂无评论