From 07d86e9cd1e00419c5b7693e6c2e1256849de4af Mon Sep 17 00:00:00 2001 From: yyy9942 Date: Thu, 14 Nov 2019 10:02:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EB=B0=98=EC=98=81=20-=20S?= =?UTF-8?q?essionUtil=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/delfood/controller/MemberController.java | 2 +- src/main/java/com/delfood/utils/SessionUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/delfood/controller/MemberController.java b/src/main/java/com/delfood/controller/MemberController.java index 65c2745..178f82d 100644 --- a/src/main/java/com/delfood/controller/MemberController.java +++ b/src/main/java/com/delfood/controller/MemberController.java @@ -253,7 +253,7 @@ public ResponseEntity deleteMemberInfo(HttpSession session deleteResponse = DeleteMemberResponse.SUCCESS; // 회원 탈퇴시 로그아웃 시켜야 하기 때문에 세션 정보를 날린다 - SessionUtil.logoutAll(session); + SessionUtil.clear(session); responseEntity = new ResponseEntity(deleteResponse, HttpStatus.OK); } diff --git a/src/main/java/com/delfood/utils/SessionUtil.java b/src/main/java/com/delfood/utils/SessionUtil.java index 79db788..a689943 100644 --- a/src/main/java/com/delfood/utils/SessionUtil.java +++ b/src/main/java/com/delfood/utils/SessionUtil.java @@ -60,7 +60,7 @@ public static void setLoginOwnerId(HttpSession session, String id) { * @author jun * @param session 사용자의 세션 */ - public static void logoutAll(HttpSession session) { + public static void clear(HttpSession session) { session.invalidate(); }