Skip to Content
한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
book

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

by 한성용, 이선 브라운
April 2016
Beginner to intermediate
389 pages
9h 8m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
149
9
-
쿠키와 세션
입니다. 전자를 ‘쿠키 기반 세션’이라 부르는데, 사실 쿠키보다 별로 간편하지도 않습니다. 이
방법을 쓰면 세션에 추가한 정보가 모두 클라이언트의 브라우저에 저장되므로 필자는 이 방법
을 권하지 않습니다. 이 방법을 권할 만한 상황은 저장하는 정보가 매우 적고 사용자가 그 정보
에 접근할 수 있어도 상관없으며, 시간이 지나도 저장할 정보가 늘어나지 않을 때뿐입니다. 이
방법을 쓰려면
cookie
-
session
미들웨어 문서(
https
://
www
.
npmjs
.
org
/
package
/
cookie
-
session
)를 보십시오.
9.4.1.
메모리에 저장
필자가 권하는 대로 세션 정보를 서버에 보관하기로 결정했다면 저장할 장소가 필요합니다. 초
보자가 선택할 만한 옵션으로 메모리 세션이 있습니다. 메모리 세션은 매우 쉽지만, 서버를 재
시작(이 책을 따라 하면서 수없이 재시작할 겁니다!)할 때마다 세션 정보가 사라진다는 심각
한 단점이 있습니다. 더 나쁜 문제는, 서버 여러 개로 확장할 때는(
12
장을 보십시오) 요청이
서로 다른 서버에서 수행될 수 있다는 점입니다. 즉 세션 데이터가 그 서버에 있을 수도 있고
없을 수도 있다는 겁니다. 사용자 경험이 심각하게 나빠질 것이 분명합니다. 하지만 개발하고
테스트하는 과정에서는 큰 문제는 아닙니다.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한선용, 이선 브라운

Publisher Resources

ISBN: 9788968482229