1. A session is created by the web container when you call HttpServletRequest.getSession() or HttpServletRequest(boolean create). A JSP by default will make a getSession call and create a session,. The second sentence is not complete right. A jsp by default contains
<%@ page session="true" %>, which tells jsp that the page participates in a session。If no session exits , getSession() will create a session.
session
最新推荐文章于 2022-07-28 18:10:18 发布