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 getservletcontext?
How variables can be accessed across the sessions?
What's the advantages using servlets than using cgi?
When servlet is loaded?
Write a simple servlet program to print the contents of html.
can u give some realtime example in ploymorphism? and inheritance?
what is the advantage of using Servlets over CGI programming?
What is http servlet in java?
can we override service method in my servlet class..?? if yes or no why ??
What is Client-Server Computing?
Name the different ways of session tracking.
What's the architecture of a servlet package?