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
What is war file?
What is the GenericServlet class?
When jsessionid is created?
Why do we have servlet listeners?
What does the term localization refer to?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is the difference between Server and Container?
What is meant by Servlet? What are the parameters of service method?
What is the need of session tracking in web application?
Which httpsession object is used to view and manipulate information about a session?
What is a servlet engine?
What is difference between get and post method?
Explain jsessionid and when is it created?
How can we refresh automatically when new data has entered the database?
What is the use of send redirect () method?