Skip to content

Commit

Permalink
docs: 4단계 README 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy0405 committed Mar 30, 2022
1 parent db2daee commit 3798a82
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,12 @@
## Step4 : 웹서버 4단계 - 쿠키를 이용한 로그인 구현

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

//TODO
- wheejuni Review 생각하기

> nathan : 일급컬렉션 사용, 컨트롤러의 개념 차용
> (루이 조는 Controller를 인터페이스로 구현하여 행동 양식을 지정함)
> (쿠킴 조는 Controller를 추상메서드로 구현함)

0 comments on commit 3798a82

Please sign in to comment.