Skip to content

Commit bc79440

Browse files
committed
fix: 로그아웃 콘솔 출력문 추가
1 parent d4f13f6 commit bc79440

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

src/main/java/cmf/commitField/domain/user/controller/LogoutController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ public class LogoutController {
1515
public void logout(HttpServletRequest request, HttpServletResponse response) throws IOException {
1616
// 세션 만료
1717
request.getSession().invalidate();
18-
18+
System.out.println("로그아웃 성공!");
1919
// 세션 쿠키 삭제
2020
Cookie cookie = new Cookie("JSESSIONID", null);
2121
cookie.setPath("/"); // 기본 경로 설정
2222
cookie.setMaxAge(0); // 쿠키 만료 시간 설정
2323
response.addCookie(cookie);
24-
2524
// CORS 대응을 위해 상태 코드만 반환하고, 프론트에서 리디렉션 처리하도록 함
2625
response.setStatus(HttpServletResponse.SC_OK);
2726
}

src/main/java/cmf/commitField/global/config/CustomWebMvcConfig.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)