I understand the difference between request.getSession(true) and request.getSession(false). But request.getSession() & request.g
request.getSession(true)
request.getSession(false)
request.getSession()
request.g
A major practical difference is its use:
in security scenario where we always needed a new session, we should use request.getSession(true).
security scenario
request.getSession(false): will return null if no session found.