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 getservletcontext?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
When to use doget() and when dopost()?
Explain the difference between get and post method in servlet?
What mechanisms are used by a Servlet Container to maintain session information?
What is api in servlet?
What’s the use of the servlet wrapper classes??
When servlet object is created?
What is called a session?
What is the main purpose of java servlets?
What is Servlets and explain the advantages of Servlet life cycle?
What is the servlet?
What exactly are the functions of servlet?
What are the different methods of session management in servlets?