Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is getservletcontext?

1139


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?

2738


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1164


When to use doget() and when dopost()?

1154


Explain the difference between get and post method in servlet?

1193


What mechanisms are used by a Servlet Container to maintain session information?

1214


What is api in servlet?

1073


What’s the use of the servlet wrapper classes??

1155


When servlet object is created?

1226


What is called a session?

1226


What is the main purpose of java servlets?

1112


What is Servlets and explain the advantages of Servlet life cycle?

1168


What is the servlet?

1128


What exactly are the functions of servlet?

1161


What are the different methods of session management in servlets?

1075