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 methods do you use in servlet - applet communication?
Is servlet a framework?
Can we override servlet service method?
What’s the difference between sendredirect and forward methods
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
what is meant by servlet to servlet communication?
What's the servlet interface?
What is servlet configuration?
What is meant by session? Tell me something about httpsession class?
What is the type of method for sending request from http server?
How variables can be accessed across the sessions?
How does java thread pool work?