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

Is servlet a controller?

1017


What is the major difference between servlet and applet?

1003


How does java thread pool work?

1123


How to rectify errors in java servlet while compilation?

967


What is servlet collaboration?

1150


Is servlet a server side scripting language?

1146


What if you need to span your transaction across multiple servlet invocations?

1094


What is cgi?

1032


Explain how to improve Servlet Performance?

1149


Explain the steps involved in placing a servlet within a package?

1059


How do you find out what client machine is making a request to your servlet

1062


Which interface should be implemented by all servlets?

1226


Can you refresh servlet in client and server-side automatically?

1084


What is the default http method in the servlet?

1306


What is the difference in between the httpservlet and generic servlet?

1128