Java HttpSession

前端 未结 5 898
眼角桃花
眼角桃花 2021-02-02 16:51

Is HttpSession in java servlet is created only after

HttpSession s = request.getSession();

?

In my code I didn\'t write that, but when

5条回答
  •  有刺的猬
    2021-02-02 17:21

    In addition to Nishant's answer note that session can be created implicitly by JSP pages unless you configured them not to create a session with <%@ page session = "false" %>.

提交回复
热议问题