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’s the difference between sendredirect and forward methods
what are the CGI Programs?
Whether we can get deadlock situation in servlets?
i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?
What do you mean by filter in servlet?
if we know the any consultancies, it will place in company work through consultancy(contract base). please help me I'm 2008 pass out java candidate...
Can you use javascript in servlets?
what is session tracking?what are types of session tracking ?and when to cookies,when to use sessionmanagement,whent use url rewriting technique,plz explain briefly?
When servlet object is created?
Explain the methods of request dispatcher in servlet?
How can you maintain servlet chaining?
What is the dispatcher servlet?