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

后端 未结 7 1957
难免孤独
难免孤独 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:04

    request.getSession() or request.getSession(true) both will return a current session only . if current session will not exist then it will create a new session.

提交回复
热议问题