difference between request.getSession(false) or
request.getSession() and request.getSession(true)
Answers were Sorted based on User's Feedback
Answer / msreekanth2004
request.getSession(true) or request.getSession():
If session is present it returns that session. Otherwise
it'll create a new session and return that.
request.getSession(false):
If session is present it returns that session. Otherwise it
return "null"
Is This Answer Correct ? | 45 Yes | 2 No |
What is a generic servlet?
What is the use of httpservletresponsewrapper?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Can we use javascript in Servlets?
What is the major difference between servlet and applet?
What are the difference between RMI and Servlets?
What do you understand by mime type?
Is dispatcher servlet a singleton?
What is the difference between genericservlet and httpservlet
What is servlet and how it works?
What are the parameters of the service method ?
When servlet object is created?