본문 바로가기
TIL

2020.09.05 Session 과 Cookie

by 시계의온도 2020. 9. 5.

[오늘 한 것]

cookie 공부하기. 

 

MDN 레퍼런스

developer.mozilla.org/ko/docs/Web/HTTP/Cookies

 

HTTP 쿠키

HTTP 쿠키(웹 쿠키, 브라우저 쿠키)는 서버가 사용자의 웹 브라우저에 전송하는 작은 데이터 조각입니다. 브라우저는 그 데이터 조각들을 저장해 놓았다가, 동일한 서버에 재 요청 시 저장된 데��

developer.mozilla.org

node.js에서 set-cookie 헤더설정 하는 법. 

https://nodejs.org/dist/latest-v8.x/docs/api/http.html#http_response_setheader_name_value

 

HTTP | Node.js v8.17.0 Documentation

HTTP# To use the HTTP server and client one must require('http'). The HTTP interfaces in Node.js are designed to support many features of the protocol which have been traditionally difficult to use. In particular, large, possibly chunk-encoded, messages. T

nodejs.org

질문: 쿠키로 로그인을 구현하면 안되는 이유가 무엇인가요?

쿠키만을 이용하여 인증을 구현하면 쿠키가 유출, 조작 될 수 있는 보안상 매우 큰 문제가 됩니다. 개인 소유가 아닌 컴퓨터에서 사용할 경우 누구나 그 사용자의 비밀번호를 확인할 수 있고 HTTP로 개인 정보를 주고 받는 것은 매우 위험합니다.

 

https://cjh5414.github.io/cookie-and-session/

 

쿠키(Cookie)와 세션(Session) & 로그인 동작 방법

Jihun's Development Blog

cjh5414.github.io

 

공부하다 말았다..(반성..) 

'TIL' 카테고리의 다른 글

2020.09.09  (0) 2020.09.10
2020.09.06  (0) 2020.09.07
2020.09.04  (0) 2020.09.05
2020.09.03 sequelize mvc 스프린트 처음부터 구현하기  (0) 2020.09.03
2020.09.01  (0) 2020.09.02

댓글