https://www.daleseo.com/http-cookies/
https://www.daleseo.com/js-web-storage/
: 다음 요청마다 이 cookie를 가져오렴?
Set-Cookie: <key1>=<value1>
Set-Cookie: <key2>=<value2>
Cookie: <key1>=<value1>; <key2>=<value2>
Set-Cookie: <key1>=<value1>; {{옵션}}
없음
세션 쿠키. 세션 종료시 만료
Max-Age=3600
해당 기간(단위 : 초)까지 만료
Expires=Tue, 19 Jan 2038 03:14:07 GMT
해당 날짜 이후 만료
Domain=test.com
a.test.com, b.test.com 및 하위 path 모두에 해당 cookie값 포함
Path=/user
test.com/user 요청 시에만 해당 cookie값 포함
동일 브라우저에서만 유효함
localStorage.setItem('obj', {a: 1, b: 2});
localStorage.getItem('obj'); //return [Object Object]
=> JSON.stringify 활용 필요