Repository navigation
[fix] 앱을 닫아도 로그인 유지되도록 세션 쿠키 max-age 추가 - #239
Merged
Merged
Conversation
minwoo-3
requested review from
Fresh-Banana,
Ims2oha and
kimseongchan0914
as code owners
October 10, 2026 10:28
kimseongchan0914
approved these changes
Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
✨ 작업 내용
SESSION쿠키에max-age를 추가했습니다. 이제 브라우저 세션 쿠키가 아니라 영속 쿠키라서 앱을 닫아도 남습니다.application.yaml,compose.prod.yaml).timeout과 쿠키max-age는 같은SESSION_TIMEOUT을 씁니다. 그래서 둘이 서로 다르게 만료되지 않습니다..env.example에SESSION_TIMEOUT설명을 추가했습니다.🔍 리뷰 시 참고사항
server.servlet.session.cookie.max-age를 Spring Session의DefaultCookieSerializer.setCookieMaxAge에 적용합니다.spring-boot-session-4.1.1자동 구성에서 확인했습니다..env에SESSION_TIMEOUT=7d처럼 값이 있으면 그 값이 우선합니다. 비워 두거나30d로 바꿔야 합니다.✅ 체크리스트
.env.example등) 변경이 필요한 경우 작성 또는 수정했나요?./gradlew build통합 테스트를 실행하지 못했습니다. CI 결과로 확인합니다.)📎 관련 이슈(선택)