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

Method logout

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

Source from the content-addressed store, hash-verified

22 }
23
24 @GetMapping("/logout")
25 public String logout(HttpSession session) {
26 // 1. 세션을 종료
27 session.invalidate();
28 // 2. 홈으로 이동
29 return "redirect:/";
30 }
31
32 @PostMapping("/login")
33 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