Java HttpSession

前端 未结 5 1085
眼角桃花
眼角桃花 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条回答
  •  萌比男神i
    2021-02-02 17:20

    Try to remove session cookies from browser and make another test. If it does not work then some other component is creating a new session before that call.

提交回复
热议问题