Here's what I've written (so far):

Difference (published)Between request.getSession() and request.getSession(true)

1. Overview In this quick tutorial, we’ll see the difference between calling HttpServletRequest#getSession() and HttpServletRequest#getSession(boolean). 2. What’s the Difference? The methods getSession() and getSession(boolean) are very similar. There’s a small difference, though. The difference is whether the session should be created if it doesn’t exist already. Calling getSession() and getSession(true) are functionally the same: retrieve the current session, and […]

Read More →