Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
리뷰 반영
Browse files Browse the repository at this point in the history
- SessionUtil 메서드 이름 변경
  • Loading branch information
yyy9942 committed Nov 14, 2019
1 parent a4302b9 commit 07d86e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/delfood/controller/MemberController.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public ResponseEntity<DeleteMemberResponse> deleteMemberInfo(HttpSession session
deleteResponse = DeleteMemberResponse.SUCCESS;

// 회원 탈퇴시 로그아웃 시켜야 하기 때문에 세션 정보를 날린다
SessionUtil.logoutAll(session);
SessionUtil.clear(session);
responseEntity = new ResponseEntity<DeleteMemberResponse>(deleteResponse, HttpStatus.OK);

}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/delfood/utils/SessionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 07d86e9

Please sign in to comment.