Skip to content

Commit 3798a82

Browse files
committed
docs: 4단계 README 작성
1 parent db2daee commit 3798a82

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,12 @@
7979
## Step4 : 웹서버 4단계 - 쿠키를 이용한 로그인 구현
8080

8181
- 302, 304 차이
82-
- response body가 없어도 되는 상태 코드(302, 304, 204)
83-
- 로그아웃 방법(Cookie 생명주기 설정, session의 역할 ~ store(Map))
84-
- Post -> Redirect -> Get
82+
- 302는 리다이렉트, 304는 Not Modified로 브라우저의 캐시를 사용하므로 절대 response body를 넣으면 안된다.
83+
- response body가 없어도 되는 상태 코드는 302, 304, 204 등이 있다.
8584
- [Set-Cookie] HTTP/1.1 vs. HTTP/2 : 세미콜론(;)으로 결합이 가능한지 아닌지 ... 아닌 것 같음
86-
- [Set-Cookie] 작성 순서(중요한 것 같음)
87-
- [Set-Cookie] Path value default는 없는건가? (Path는 필수인듯?)
85+
- [Set-Cookie] 작성 순서(cookie-name=cookie-value; 옵션들(max-age, path, domain 등등))
86+
- [Set-Cookie] Path value default 있음 (/user/create -> /user가 기본 값)
87+
- [Set-Cookie] Path를 set-Cookie 했을 때와 동일한 Path 값을 설정해야 정상적인 로그아웃이 가능함
8888
- 참고 : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
8989
- 참고2: https://stackoverflow.com/questions/16305814/are-multiple-cookie-headers-allowed-in-an-http-request
9090

91-
//TODO
92-
- wheejuni Review 생각하기
93-
94-
> nathan : 일급컬렉션 사용, 컨트롤러의 개념 차용
95-
> (루이 조는 Controller를 인터페이스로 구현하여 행동 양식을 지정함)
96-
> (쿠킴 조는 Controller를 추상메서드로 구현함)
97-

0 commit comments

Comments
 (0)