MCPcopy Index your code
hub / github.com/castello/spring_basic / loginCheck

Method loginCheck

ch4/BoardController2.java:145–150  ·  view source on GitHub ↗
(HttpServletRequest request)

Source from the content-addressed store, hash-verified

143 }
144
145 private boolean loginCheck(HttpServletRequest request) {
146 // 1. 세션을 얻어서(false는 session이 없어도 새로 생성하지 않는다. 반환값 null)
147 HttpSession session = request.getSession(false);
148 // 2. 세션에 id가 있는지 확인, 있으면 true를 반환
149 return session!=null && session.getAttribute("id")!=null;
150 }
151}

Callers 1

listMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected