Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
참고한 이미지 올립니다!
Important content
제가 작성한 과제 내용에서 잘못 이해한 부분이나 보완할 부분 궁금합니다.
Question
저번 실습코드로 복습하면서 궁금한 점이 생겼습니다! MemberController login메서드에서 Authentication 객체를 계속 갱신하도록 코드 작성된 이유가 세션 고정 공격 방지를 위해서 일까요?? Authentication 객체를 로그인 시 새로 생성해야 하는 다른 이유가 있는지 궁금합니다!
Reference
세션,쿠키 참고1
세션,쿠키 참고2
세션 보안 고려사항
인호 코어님 5주차 수업자료 참고하였습니다.