difference between request.getSession(false) or
request.getSession() and request.getSession(true)
Answer Posted / 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 |
Post New Answer View All Answers
Is servlet a controller?
What is the major difference between servlet and applet?
How does java thread pool work?
How to rectify errors in java servlet while compilation?
What is servlet collaboration?
Is servlet a server side scripting language?
What if you need to span your transaction across multiple servlet invocations?
What is cgi?
Explain how to improve Servlet Performance?
Explain the steps involved in placing a servlet within a package?
How do you find out what client machine is making a request to your servlet
Which interface should be implemented by all servlets?
Can you refresh servlet in client and server-side automatically?
What is the default http method in the servlet?
What is the difference in between the httpservlet and generic servlet?