What do these calls actually mean in terms of session?
System.out.println(\"print1: \"+request.getSession().getId());
System.out.println(\"print2: \"+request.get
request.getSession().getId()
Returs the id of the session.
Request.getsession(false)
returns the already existing session object. It wont return anything i.e. Will return null , if session does not exist. Whereas with true
parameter it will create a new session object and return it if no session exists