250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- RDS
- AWS
- certbot
- nginx
- Node.js
- jsonwebtoken
- single quote
- css
- flutter
- sequelize
- wil
- TypeScript
- await
- JavaScript
- double quote
- findByIdAndDelete
- Express
- clipBehavior
- MYSQL
- TailwindCSS
- atlas
- https
- mongoose
- til
- EC2
- Nodejs
- mongodb
- async
- Find
- moment
Link
Archives
반응형
목록express-session (1)
기억 휘발 방지소
[Node.js] express-session
아래 명령어로 express-session을 설치할 수 있다. npm i express-session import express from "express"; import session from "express-session"; const app = express(); app.use( session({ httpOnly: true, secure: true, secret: "I am secret key", resave: false, saveUninitialized: false, cookie: { httpOnly: true, secure: true, maxAge: 20000, } }) ); httpOnly: 자바스크립트를 통해 세션 쿠키를 사용할 수 없도록 함 secure: https 환경에서만 session ..
Web/Node.js
2021. 9. 23. 16:22
반응형