SyntaxFix
Write A Post
Hire A Developer
Questions
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.
request.getSession(true)
request.getSession()
request.getSession(false)
null