강의_9장_세션.pdf

1. 상태 유지를 위한 session 객체

세션

web.xml: 기본 30분

<!-- ==================== Default Session Configuration ================= -->
  <!-- You can set the default session timeout (in minutes) for all newly   -->
  <!-- created sessions by modifying the value below.                       -->

    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

1.1 쿠키와 세션의 차이 & 캐시

20230412144040.png

캐시

쿠키

장바구니 기능, '오늘 더이상 창을 보지 않음. 창 팝업' 등에 사용

세션