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 servlet configuration?
What is servlet looping or chaining?
Why do we have servlet filters?
What do you understand by mime type?
How can we perform any action at the time of deploying the project?
What is the major difference between servlet and applet?
What do you mean by cgi in servlet?
How values can be passed from HTML page to servlet?
What is the directory structure of web application?
What is context switching?
Explain life cycle of a Servlet?
Write a servlet to upload file on server.