Difference between request.getSession() and request.getSession(true)

后端 未结 7 1758
难免孤独
难免孤独 2021-01-31 08:43

I understand the difference between request.getSession(true) and request.getSession(false). But request.getSession() & request.g

7条回答
  •  感情败类
    2021-01-31 09:12

    request.getSession(true) and request.getSession() both do the same thing, but if we use request.getSession(false) it will return null if session object not created yet.

提交回复
热议问题