MCPcopy Create free account
hub / github.com/castello/spring_basic / logout

Method logout

ch4/LoginController.java:30–36  ·  view source on GitHub ↗
(HttpSession session)

Source from the content-addressed store, hash-verified

28 }
29
30 @GetMapping("/logout")
31 public String logout(HttpSession session) {
32 // 1. 세션을 종료
33 session.invalidate();
34 // 2. 홈으로 이동
35 return "redirect:/";
36 }
37
38 @PostMapping("/login")
39 public String login(String id, String pwd, String toURL, boolean rememberId,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected