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 |
how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)
How do you invoke a servelt?
What are the various ways of session supervision in servlets?
What is servlet in web technology?
How we can get ip address of client in servlet?
How do you design microservices?
How to get the server information in a servlet?
How to get the actual path of servlet in server?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
what is OOAS
How to rectify errors in java servlet while compilation?
How can I share objects across different sessions?